From: Denis Kirjanov Date: Sun, 29 Aug 2010 21:21:38 +0000 (+0000) Subject: pxa168_eth: fix a mdiobus leak X-Git-Tag: v3.0~3155^2~142 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9c01ae58d4fee39e2af5b1379ee5431dd585cf62;p=platform%2Fkernel%2Flinux-amlogic.git pxa168_eth: fix a mdiobus leak mdiobus resources must be released on exit Signed-off-by: Denis Kirjanov Acked-by: Dan Carpenter Signed-off-by: David S. Miller --- diff --git a/drivers/net/pxa168_eth.c b/drivers/net/pxa168_eth.c index 410ea0a..85eddda 100644 --- a/drivers/net/pxa168_eth.c +++ b/drivers/net/pxa168_eth.c @@ -1606,6 +1606,8 @@ static int pxa168_eth_remove(struct platform_device *pdev) iounmap(pep->base); pep->base = NULL; + mdiobus_unregister(pep->smi_bus); + mdiobus_free(pep->smi_bus); unregister_netdev(dev); flush_scheduled_work(); free_netdev(dev);