diff options
author | Marcel van Nies <morcles@gmail.com> | 2007-04-21 18:34:10 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2007-04-21 18:34:10 -0400 |
commit | 9f9b6693ed8254177bafcb823b0ea3659d61adb0 (patch) | |
tree | 5c5394ea942ce99cf3251ef488ebe7baa4bcadec /drivers | |
parent | d0dc1129c2e5a5a0e53940cad44333e6bd2f9af3 (diff) |
[SUNLANCE]: Fix module unload.
Signed-off-by: Marcel van Nies <morcles@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/sunlance.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/sunlance.c b/drivers/net/sunlance.c index 5b00d79b5573..b0929a457b60 100644 --- a/drivers/net/sunlance.c +++ b/drivers/net/sunlance.c | |||
@@ -1550,7 +1550,7 @@ static int __exit sunlance_sun4_remove(void) | |||
1550 | struct lance_private *lp = dev_get_drvdata(&sun4_sdev.ofdev.dev); | 1550 | struct lance_private *lp = dev_get_drvdata(&sun4_sdev.ofdev.dev); |
1551 | struct net_device *net_dev = lp->dev; | 1551 | struct net_device *net_dev = lp->dev; |
1552 | 1552 | ||
1553 | unregister_netdevice(net_dev); | 1553 | unregister_netdev(net_dev); |
1554 | 1554 | ||
1555 | lance_free_hwresources(lp); | 1555 | lance_free_hwresources(lp); |
1556 | 1556 | ||
@@ -1590,7 +1590,7 @@ static int __devexit sunlance_sbus_remove(struct of_device *dev) | |||
1590 | struct lance_private *lp = dev_get_drvdata(&dev->dev); | 1590 | struct lance_private *lp = dev_get_drvdata(&dev->dev); |
1591 | struct net_device *net_dev = lp->dev; | 1591 | struct net_device *net_dev = lp->dev; |
1592 | 1592 | ||
1593 | unregister_netdevice(net_dev); | 1593 | unregister_netdev(net_dev); |
1594 | 1594 | ||
1595 | lance_free_hwresources(lp); | 1595 | lance_free_hwresources(lp); |
1596 | 1596 | ||