]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ENGR00275469 net:fec: move devm_* and of_* apis to probe function
authorFugang Duan <B38611@freescale.com>
Fri, 16 Aug 2013 01:16:21 +0000 (09:16 +0800)
committerJason Liu <r64343@freescale.com>
Wed, 30 Oct 2013 01:54:42 +0000 (09:54 +0800)
commit491043a3fded967e9aa72677888c1ce6718329ea
treeff038c489d42a8cf79920ce268e280cd9c0db780
parentbd11f78c63e9d8acf9289ff3eaea75e481789e08
ENGR00275469 net:fec: move devm_* and of_* apis to probe function

fec_reset_phy() function is called in fec_enet_open(). And
fec_reset_phy() call of_get_named_gpio() and devm_gpio_request_one()
apis, which makes no sense since the two apis do something that
should only be done at .probe() time.

So move two functions into fec_probe() and only leave gpio_set_value()
and msleep() calls in fec_reset_phy(). And remove fec_free_reset_gpio()
function.

Signed-off-by: Fugang Duan <B38611@freescale.com>
Acked-by: Shawn Guo <shawn.guo@linaro.org>
drivers/net/ethernet/freescale/fec.h
drivers/net/ethernet/freescale/fec_main.c