mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
[SUNLANCE]: Fix module unload.
Signed-off-by: Marcel van Nies <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
d0dc1129c2
commit
9f9b6693ed
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue