[PATCH 1/4] ARM: mx5/babbage: Use gpio_request_one in babbage_fec_reset
Uwe Kleine-König
u.kleine-koenig at pengutronix.de
Thu Mar 17 03:57:10 EDT 2011
On Wed, Mar 16, 2011 at 10:52:31PM -0300, Fabio Estevam wrote:
> Current code inside babbage_fec_reset uses gpio_direction_output with initial value of the GPIO and also sets
> the GPIO value via gpio_set_value to the same level right after. This is not needed.
>
> By using gpio_request_one it is possible to set the direction and initial value in one shot.
>
> Signed-off-by: Fabio Estevam <fabio.estevam at freescale.com>
Acked-by: Uwe Kleine-König <u.kleine-koenig at pengutronix.de> for patches
1, 3 and 4 in this series.
Thanks
Uwe
--
Pengutronix e.K. | Uwe Kleine-König |
Industrial Linux Solutions | http://www.pengutronix.de/ |
More information about the linux-arm-kernel
mailing list