Skip to content

Commit

Permalink
[SUNLANCE]: Fix module unload.
Browse files Browse the repository at this point in the history
Signed-off-by: Marcel van Nies <morcles@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Marcel van Nies authored and David S. Miller committed Apr 21, 2007
1 parent d0dc112 commit 9f9b669
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/net/sunlance.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down Expand Up @@ -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);

Expand Down

0 comments on commit 9f9b669

Please sign in to comment.