aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2009-09-06 04:41:02 -0400
committerDavid S. Miller <davem@davemloft.net>2009-09-06 04:41:24 -0400
commitd9d8e0418ffd3d189345c435861e254c17ae06e5 (patch)
treeee97d40fa4ccfd3c802e6844b3d38097ff7a6c7a
parent16ebb5e0b36ceadc8186f71d68b0c4fa4b6e781b (diff)
gianfar: Fix build.
Reported by Michael Guntsche <mike@it-loops.com> -------------------- Commit 38bddf04bcfe661fbdab94888c3b72c32f6873b3 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>
-rw-r--r--drivers/net/gianfar.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/gianfar.c b/drivers/net/gianfar.c
index 24f7ca5e17de..a00ec639c380 100644
--- a/drivers/net/gianfar.c
+++ b/drivers/net/gianfar.c
@@ -491,7 +491,7 @@ static int gfar_remove(struct of_device *ofdev)
491 491
492 dev_set_drvdata(&ofdev->dev, NULL); 492 dev_set_drvdata(&ofdev->dev, NULL);
493 493
494 unregister_netdev(dev); 494 unregister_netdev(priv->ndev);
495 iounmap(priv->regs); 495 iounmap(priv->regs);
496 free_netdev(priv->ndev); 496 free_netdev(priv->ndev);
497 497