Skip to content

Commit 7afb9dc

Browse files
herbertxdavem330
authored andcommitted
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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent e69c4e0 commit 7afb9dc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

drivers/net/myri_sbus.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1118,7 +1118,7 @@ static int __devexit myri_sbus_remove(struct of_device *dev)
11181118
struct myri_eth *mp = dev_get_drvdata(&dev->dev);
11191119
struct net_device *net_dev = mp->dev;
11201120

1121-
unregister_netdevice(net_dev);
1121+
unregister_netdev(net_dev);
11221122

11231123
free_irq(net_dev->irq, net_dev);
11241124

drivers/net/sunbmac.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1274,7 +1274,7 @@ static int __devexit bigmac_sbus_remove(struct of_device *dev)
12741274
struct bigmac *bp = dev_get_drvdata(&dev->dev);
12751275
struct net_device *net_dev = bp->dev;
12761276

1277-
unregister_netdevice(net_dev);
1277+
unregister_netdev(net_dev);
12781278

12791279
sbus_iounmap(bp->gregs, GLOB_REG_SIZE);
12801280
sbus_iounmap(bp->creg, CREG_REG_SIZE);

0 commit comments

Comments
 (0)