aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/smsc/smsc911x.c
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2014-10-02 04:15:30 -0400
committerDavid S. Miller <davem@davemloft.net>2014-10-03 18:31:40 -0400
commit6a05880a8b22c6ba2ffdabbceb4635d28abe9072 (patch)
treeddfe9129a865ed13888fa91603c4326717435beb /drivers/net/ethernet/smsc/smsc911x.c
parentc2bf5ec20488fb91af32f1c7f7c63f338ebacc9f (diff)
net: ethernet: Remove superfluous ether_setup after alloc_etherdev
There is no need to call ether_setup after alloc_ethdev since it was already called there. Follow commits c706471b2601 ("net: axienet: remove unnecessary ether_setup after alloc_etherdev") and 3c87dcbfb36c ("net: ll_temac: Remove unnecessary ether_setup after alloc_etherdev") and fix the pattern in all remaining ethernet drivers. Signed-off-by: Tobias Klauser <tklauser@distanz.ch> Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/smsc/smsc911x.c')
-rw-r--r--drivers/net/ethernet/smsc/smsc911x.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/ethernet/smsc/smsc911x.c b/drivers/net/ethernet/smsc/smsc911x.c
index 5e13fa5524ae..affb29da353e 100644
--- a/drivers/net/ethernet/smsc/smsc911x.c
+++ b/drivers/net/ethernet/smsc/smsc911x.c
@@ -2255,7 +2255,6 @@ static int smsc911x_init(struct net_device *dev)
2255 if (smsc911x_soft_reset(pdata)) 2255 if (smsc911x_soft_reset(pdata))
2256 return -ENODEV; 2256 return -ENODEV;
2257 2257
2258 ether_setup(dev);
2259 dev->flags |= IFF_MULTICAST; 2258 dev->flags |= IFF_MULTICAST;
2260 netif_napi_add(dev, &pdata->napi, smsc911x_poll, SMSC_NAPI_WEIGHT); 2259 netif_napi_add(dev, &pdata->napi, smsc911x_poll, SMSC_NAPI_WEIGHT);
2261 dev->netdev_ops = &smsc911x_netdev_ops; 2260 dev->netdev_ops = &smsc911x_netdev_ops;