Commit 9c01ae58 authored by Denis Kirjanov's avatar Denis Kirjanov Committed by David S. Miller

pxa168_eth: fix a mdiobus leak

mdiobus resources must be released on exit
Signed-off-by: default avatarDenis Kirjanov <dkirjanov@kernel.org>
Acked-by: default avatarDan Carpenter <error27@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 0f04cfd0
...@@ -1606,6 +1606,8 @@ static int pxa168_eth_remove(struct platform_device *pdev) ...@@ -1606,6 +1606,8 @@ static int pxa168_eth_remove(struct platform_device *pdev)
iounmap(pep->base); iounmap(pep->base);
pep->base = NULL; pep->base = NULL;
mdiobus_unregister(pep->smi_bus);
mdiobus_free(pep->smi_bus);
unregister_netdev(dev); unregister_netdev(dev);
flush_scheduled_work(); flush_scheduled_work();
free_netdev(dev); free_netdev(dev);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment