net: fec: use managed function devm_gpio_request_one
authorShawn Guo <shawn.guo@linaro.org>
Wed, 27 Jun 2012 03:45:22 +0000 (03:45 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 28 Jun 2012 04:22:06 +0000 (21:22 -0700)
commit119fc007766fc6ec6cff0f696d73cebb6f2cbe58
tree9d4352c5176fc654b9dbd98e745d7daeb3bc6a35
parent5fa9c0fe3ec0a008352d4a4fb8d972a437183404
net: fec: use managed function devm_gpio_request_one

Using gpio_request_one will require the probe fail-out call gpio_free,
which is missing currently.  Change to use devm_gpio_request_one to
fix the problem.

Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/fec.c