sh_eth: no need to call ether_setup()
authorSergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Thu, 29 Aug 2013 20:24:47 +0000 (00:24 +0400)
committerDavid S. Miller <davem@davemloft.net>
Thu, 29 Aug 2013 20:39:31 +0000 (16:39 -0400)
There's no need to call ether_setup() in the driver since prior alloc_etherdev()
call already arranges for it.

Suggested-by: Denis Kirjanov <kda@linux-powerpc.org>
Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/renesas/sh_eth.c

index c357076..4b47300 100644 (file)
@@ -2639,9 +2639,6 @@ static int sh_eth_drv_probe(struct platform_device *pdev)
 
        SET_NETDEV_DEV(ndev, &pdev->dev);
 
-       /* Fill in the fields of the device structure with ethernet values. */
-       ether_setup(ndev);
-
        mdp = netdev_priv(ndev);
        mdp->num_tx_ring = TX_RING_SIZE;
        mdp->num_rx_ring = RX_RING_SIZE;