Skip to content

Commit

Permalink
gianfar: Fix build.
Browse files Browse the repository at this point in the history
Reported by Michael Guntsche <mike@it-loops.com>

--------------------
Commit
38bddf0 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: David S. Miller <davem@davemloft.net>
  • Loading branch information
davem330 committed Sep 6, 2009
1 parent 16ebb5e commit d9d8e04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/gianfar.c
Expand Up @@ -491,7 +491,7 @@ static int gfar_remove(struct of_device *ofdev)

dev_set_drvdata(&ofdev->dev, NULL);

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

Expand Down

0 comments on commit d9d8e04

Please sign in to comment.