Преглед на файлове

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>
LABBE Corentin преди 8 години
родител
ревизия
6a2cac549b
променени са 2 файла, в които са добавени 0 реда и са изтрити 5 реда
  1. 0 4
      drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
  2. 0 1
      include/linux/stmmac.h

+ 0 - 4
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  */
 	/* Copy the MAC addr into the HW  */
 	priv->hw->mac->set_umac_addr(priv->hw, dev->dev_addr, 0);
 	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 */
 	/* PS and related bits will be programmed according to the speed */
 	if (priv->hw->pcs) {
 	if (priv->hw->pcs) {
 		int speed = priv->plat->mac_port_sel_speed;
 		int speed = priv->plat->mac_port_sel_speed;

+ 0 - 1
include/linux/stmmac.h

@@ -134,7 +134,6 @@ struct plat_stmmacenet_data {
 	int tx_fifo_size;
 	int tx_fifo_size;
 	int rx_fifo_size;
 	int rx_fifo_size;
 	void (*fix_mac_speed)(void *priv, unsigned int speed);
 	void (*fix_mac_speed)(void *priv, unsigned int speed);
-	void (*bus_setup)(void __iomem *ioaddr);
 	int (*init)(struct platform_device *pdev, void *priv);
 	int (*init)(struct platform_device *pdev, void *priv);
 	void (*exit)(struct platform_device *pdev, void *priv);
 	void (*exit)(struct platform_device *pdev, void *priv);
 	void *bsp_priv;
 	void *bsp_priv;