diff options
Diffstat (limited to 'drivers/net/gianfar.c')
-rw-r--r-- | drivers/net/gianfar.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/gianfar.c b/drivers/net/gianfar.c index 4544da4cf3ce..772104c5ed26 100644 --- a/drivers/net/gianfar.c +++ b/drivers/net/gianfar.c | |||
@@ -490,6 +490,7 @@ static int gfar_remove(struct of_device *ofdev) | |||
490 | 490 | ||
491 | dev_set_drvdata(&ofdev->dev, NULL); | 491 | dev_set_drvdata(&ofdev->dev, NULL); |
492 | 492 | ||
493 | unregister_netdev(dev); | ||
493 | iounmap(priv->regs); | 494 | iounmap(priv->regs); |
494 | free_netdev(priv->ndev); | 495 | free_netdev(priv->ndev); |
495 | 496 | ||