diff options
author | Fabio Estevam <fabio.estevam@freescale.com> | 2011-03-17 11:55:57 -0400 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2011-05-19 07:11:04 -0400 |
commit | 6f9ec442a07701e0ef241854862fdf2540be1bdb (patch) | |
tree | cc291be07bd36c1fd086ec2940078c89356fe001 /samples/tracepoints/Makefile | |
parent | 2d95378b043f082192a11f8476e3f63291c3477b (diff) |
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>
Diffstat (limited to 'samples/tracepoints/Makefile')
0 files changed, 0 insertions, 0 deletions