]> git.sur5r.net Git - u-boot/commit
net: pch_gbe: Add driver remove support
authorBin Meng <bmeng.cn@gmail.com>
Thu, 8 Oct 2015 04:32:39 +0000 (21:32 -0700)
committerJoe Hershberger <joe.hershberger@ni.com>
Thu, 29 Oct 2015 19:05:50 +0000 (14:05 -0500)
commit3f616b6053517927f564fc8ed6dc4a87bd39e857
tree161e9b0c0f5849c3146410694e7807fe03078241
parent5d2459fd466ebf86c717ccb28a8f56707a29724a
net: pch_gbe: Add driver remove support

In pch_gbe_probe(), some additional resources are allocated
(eg: mdio, phy). We should free these in the driver remove phase.
Add pch_gbe_remove() to clean it up.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
drivers/net/pch_gbe.c