]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
gianfar: Fix build.
authorDavid S. Miller <davem@davemloft.net>
Sun, 6 Sep 2009 08:41:02 +0000 (01:41 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 6 Sep 2009 08:41:24 +0000 (01:41 -0700)
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>
drivers/net/gianfar.c

index 24f7ca5e17dee13a743e1732a19055bc46b1fdc3..a00ec639c38039ad56f17706a5441cabe2c3fc20 100644 (file)
@@ -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);