Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9f9b6693 authored by Marcel van Nies's avatar Marcel van Nies Committed by David S. Miller
Browse files

[SUNLANCE]: Fix module unload.

parent d0dc1129
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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);