提交 9f9b6693 编写于 作者: M Marcel van Nies 提交者: David S. Miller

[SUNLANCE]: Fix module unload.

Signed-off-by: NMarcel van Nies <morcles@gmail.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 d0dc1129
...@@ -1550,7 +1550,7 @@ static int __exit sunlance_sun4_remove(void) ...@@ -1550,7 +1550,7 @@ static int __exit sunlance_sun4_remove(void)
struct lance_private *lp = dev_get_drvdata(&sun4_sdev.ofdev.dev); struct lance_private *lp = dev_get_drvdata(&sun4_sdev.ofdev.dev);
struct net_device *net_dev = lp->dev; struct net_device *net_dev = lp->dev;
unregister_netdevice(net_dev); unregister_netdev(net_dev);
lance_free_hwresources(lp); lance_free_hwresources(lp);
...@@ -1590,7 +1590,7 @@ static int __devexit sunlance_sbus_remove(struct of_device *dev) ...@@ -1590,7 +1590,7 @@ static int __devexit sunlance_sbus_remove(struct of_device *dev)
struct lance_private *lp = dev_get_drvdata(&dev->dev); struct lance_private *lp = dev_get_drvdata(&dev->dev);
struct net_device *net_dev = lp->dev; struct net_device *net_dev = lp->dev;
unregister_netdevice(net_dev); unregister_netdev(net_dev);
lance_free_hwresources(lp); lance_free_hwresources(lp);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册