summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Kirjanov <dkirjanov@kernel.org>2010-08-29 21:21:38 +0000
committerDavid S. Miller <davem@davemloft.net>2010-09-01 14:29:34 -0700
commit9c01ae58d4fee39e2af5b1379ee5431dd585cf62 (patch)
tree0fc4f70ce749a5dcc32931d3214bfb1a8c90e171
parent0f04cfd098fb81fded74e78ea1a1b86cc6c6c31e (diff)
pxa168_eth: fix a mdiobus leak
mdiobus resources must be released on exit Signed-off-by: Denis Kirjanov <dkirjanov@kernel.org> Acked-by: Dan Carpenter <error27@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--drivers/net/pxa168_eth.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/pxa168_eth.c b/drivers/net/pxa168_eth.c
index 410ea0a61371..85eddda276bd 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);