[SUNLANCE]: Fix module unload.
authorMarcel van Nies <morcles@gmail.com>
Sat, 21 Apr 2007 22:34:10 +0000 (15:34 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 21 Apr 2007 22:34:10 +0000 (15:34 -0700)
Signed-off-by: Marcel van Nies <morcles@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/sunlance.c

index 5b00d79b557376d6f63b143a8d3effd697b70294..b0929a457b604e48cbd62faa772e2d5cbfe58987 100644 (file)
@@ -1550,7 +1550,7 @@ static int __exit sunlance_sun4_remove(void)
        struct lance_private *lp = dev_get_drvdata(&sun4_sdev.ofdev.dev);
        struct net_device *net_dev = lp->dev;
 
-       unregister_netdevice(net_dev);
+       unregister_netdev(net_dev);
 
        lance_free_hwresources(lp);
 
@@ -1590,7 +1590,7 @@ static int __devexit sunlance_sbus_remove(struct of_device *dev)
        struct lance_private *lp = dev_get_drvdata(&dev->dev);
        struct net_device *net_dev = lp->dev;
 
-       unregister_netdevice(net_dev);
+       unregister_netdev(net_dev);
 
        lance_free_hwresources(lp);