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

Commit d9d8e041 authored by David S. Miller's avatar David S. Miller
Browse files

gianfar: Fix build.



Reported by Michael Guntsche <mike@it-loops.com>

--------------------
Commit
38bddf04 gianfar: gfar_remove needs to call unregister_netdev()

breaks the build of the gianfar driver because "dev" is undefined in
this function. To quickly test rc9 I changed this to priv->ndev but I do
not know if this is the correct one.
--------------------

Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 16ebb5e0
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -491,7 +491,7 @@ static int gfar_remove(struct of_device *ofdev)


	dev_set_drvdata(&ofdev->dev, NULL);
	dev_set_drvdata(&ofdev->dev, NULL);


	unregister_netdev(dev);
	unregister_netdev(priv->ndev);
	iounmap(priv->regs);
	iounmap(priv->regs);
	free_netdev(priv->ndev);
	free_netdev(priv->ndev);