netdrv: Fix unregister_netdev typos
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>
This commit is contained in:
committed by
David S. Miller
parent
e69c4e0f12
commit
7afb9dc9a5
@@ -1118,7 +1118,7 @@ static int __devexit myri_sbus_remove(struct of_device *dev)
|
|||||||
struct myri_eth *mp = dev_get_drvdata(&dev->dev);
|
struct myri_eth *mp = dev_get_drvdata(&dev->dev);
|
||||||
struct net_device *net_dev = mp->dev;
|
struct net_device *net_dev = mp->dev;
|
||||||
|
|
||||||
unregister_netdevice(net_dev);
|
unregister_netdev(net_dev);
|
||||||
|
|
||||||
free_irq(net_dev->irq, net_dev);
|
free_irq(net_dev->irq, net_dev);
|
||||||
|
|
||||||
|
@@ -1274,7 +1274,7 @@ static int __devexit bigmac_sbus_remove(struct of_device *dev)
|
|||||||
struct bigmac *bp = dev_get_drvdata(&dev->dev);
|
struct bigmac *bp = dev_get_drvdata(&dev->dev);
|
||||||
struct net_device *net_dev = bp->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->gregs, GLOB_REG_SIZE);
|
||||||
sbus_iounmap(bp->creg, CREG_REG_SIZE);
|
sbus_iounmap(bp->creg, CREG_REG_SIZE);
|
||||||
|
Reference in New Issue
Block a user