diff options
author | LABBE Corentin <clabbe.montjoie@gmail.com> | 2017-02-08 11:31:07 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-02-08 23:11:22 +0300 |
commit | 6a2cac549b368960c9cd6a993f2f2cc6d720e935 (patch) | |
tree | 6e48a1b29ade1c81dd8bb541053eb52a10c238a7 /drivers/net/ethernet/stmicro | |
parent | 280892226ba25289519c685a6d25ba2670f2d851 (diff) | |
download | linux-6a2cac549b368960c9cd6a993f2f2cc6d720e935.tar.xz |
net: stmmac: Remove the bus_setup function pointer
The bus_setup function pointer is not used at all, this patch remove it.
Signed-off-by: Corentin Labbe <clabbe.montjoie@gmail.com>
Acked-by: Giuseppe Cavallaro <peppe.cavallaro@st.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/stmicro')
-rw-r--r-- | drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c index bd83bf9ef326..1ef602820110 100644 --- a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c +++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c @@ -1682,10 +1682,6 @@ static int stmmac_hw_setup(struct net_device *dev, bool init_ptp) /* Copy the MAC addr into the HW */ priv->hw->mac->set_umac_addr(priv->hw, dev->dev_addr, 0); - /* If required, perform hw setup of the bus. */ - if (priv->plat->bus_setup) - priv->plat->bus_setup(priv->ioaddr); - /* PS and related bits will be programmed according to the speed */ if (priv->hw->pcs) { int speed = priv->plat->mac_port_sel_speed; |