From: Sergei Shtylyov Date: Thu, 29 Aug 2013 20:24:47 +0000 (+0400) Subject: sh_eth: no need to call ether_setup() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=488594883e25cc6e40df067a9a7b39737ebb18d8;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git sh_eth: no need to call ether_setup() There's no need to call ether_setup() in the driver since prior alloc_etherdev() call already arranges for it. Suggested-by: Denis Kirjanov Signed-off-by: Sergei Shtylyov Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/renesas/sh_eth.c b/drivers/net/ethernet/renesas/sh_eth.c index c3570764f58f..4b4730070a3a 100644 --- a/drivers/net/ethernet/renesas/sh_eth.c +++ b/drivers/net/ethernet/renesas/sh_eth.c @@ -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;