ARM: mx5/babbage: Use gpio_request_one in babbage_usbhub_reset
authorFabio Estevam <fabio.estevam@freescale.com>
Thu, 17 Mar 2011 15:55:57 +0000 (12:55 -0300)
committerSascha Hauer <s.hauer@pengutronix.de>
Thu, 19 May 2011 11:11:04 +0000 (13:11 +0200)
commit6f9ec442a07701e0ef241854862fdf2540be1bdb
treecc291be07bd36c1fd086ec2940078c89356fe001
parent2d95378b043f082192a11f8476e3f63291c3477b
ARM: mx5/babbage: Use gpio_request_one in babbage_usbhub_reset

Current code inside babbage_usbhub_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@freescale.com>
LAKML-Reference: 1300377359-23212-2-git-send-email-fabio.estevam@freescale.com
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
arch/arm/mach-mx5/board-mx51_babbage.c