Skip to contentSkip to conversation

sunlance fix module unload

PATCH New Marcel van Nies 1 participant 1 message Apr 21, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sunlance fix module unload

Hi all,

This patch fixes the sunlance driver.

I've tested this on my SS20.
Thanks.

--- linux-2.6.21-rc7-git5-up/drivers/net/sunlance.c.org 2007-02-04
19:44:54.000000000 +0100
+++ linux-2.6.21-rc7-git5-up/drivers/net/sunlance.c 2007-04-21
19:36:52.000000000 +0200
@@ -1550,7 +1550,7 @@
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 @@
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);