diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2014-10-02 10:15:30 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-10-04 00:31:40 +0200 |
commit | 6a05880a8b22c6ba2ffdabbceb4635d28abe9072 (patch) | |
tree | ddfe9129a865ed13888fa91603c4326717435beb /drivers/net/ethernet/calxeda | |
parent | Merge branch 'qdisc_bulk_dequeue' (diff) | |
download | linux-6a05880a8b22c6ba2ffdabbceb4635d28abe9072.tar.xz linux-6a05880a8b22c6ba2ffdabbceb4635d28abe9072.zip |
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/calxeda')
-rw-r--r-- | drivers/net/ethernet/calxeda/xgmac.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/ethernet/calxeda/xgmac.c b/drivers/net/ethernet/calxeda/xgmac.c index 25d6b2a10e4e..47bfea24b9e1 100644 --- a/drivers/net/ethernet/calxeda/xgmac.c +++ b/drivers/net/ethernet/calxeda/xgmac.c @@ -1735,7 +1735,6 @@ static int xgmac_probe(struct platform_device *pdev) SET_NETDEV_DEV(ndev, &pdev->dev); priv = netdev_priv(ndev); platform_set_drvdata(pdev, ndev); - ether_setup(ndev); ndev->netdev_ops = &xgmac_netdev_ops; ndev->ethtool_ops = &xgmac_ethtool_ops; spin_lock_init(&priv->stats_lock); |