Skip to content

Commit

Permalink
netdrv: Fix unregister_netdev typos
Browse files Browse the repository at this point in the history
Found during the (partial) unregister_netdevice audit that we didn't
have to have :)

It looks like a couple of Sun NIC drivers had unregister_netdevice
when they really meant unregister_netdev.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Herbert Xu authored and David S. Miller committed Oct 5, 2008
1 parent e69c4e0 commit 7afb9dc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion drivers/net/myri_sbus.c
Original file line number Diff line number Diff line change
Expand Up @@ -1118,7 +1118,7 @@ static int __devexit myri_sbus_remove(struct of_device *dev)
struct myri_eth *mp = dev_get_drvdata(&dev->dev);
struct net_device *net_dev = mp->dev;

unregister_netdevice(net_dev);
unregister_netdev(net_dev);

free_irq(net_dev->irq, net_dev);

Expand Down
2 changes: 1 addition & 1 deletion drivers/net/sunbmac.c
Original file line number Diff line number Diff line change
Expand Up @@ -1274,7 +1274,7 @@ static int __devexit bigmac_sbus_remove(struct of_device *dev)
struct bigmac *bp = dev_get_drvdata(&dev->dev);
struct net_device *net_dev = bp->dev;

unregister_netdevice(net_dev);
unregister_netdev(net_dev);

sbus_iounmap(bp->gregs, GLOB_REG_SIZE);
sbus_iounmap(bp->creg, CREG_REG_SIZE);
Expand Down

0 comments on commit 7afb9dc

Please sign in to comment.