Commit 2fcc81a3 authored by Vikram Pandita's avatar Vikram Pandita Committed by Kevin Hilman

OMAP: Zoom2: release debug board detect gpio line

Release the Dbg board detection gpio once its purpose is served
Signed-off-by: default avatarVikram Pandita <vikram.pandita@ti.com>
Signed-off-by: default avatarKevin Hilman <khilman@deeprootsystems.com>
parent 5110b298
...@@ -129,6 +129,7 @@ static inline void __init zoom2_init_quaduart(void) ...@@ -129,6 +129,7 @@ static inline void __init zoom2_init_quaduart(void)
static inline int omap_zoom2_debugboard_detect(void) static inline int omap_zoom2_debugboard_detect(void)
{ {
int debug_board_detect = 0; int debug_board_detect = 0;
int ret = 1;
debug_board_detect = ZOOM2_SMSC911X_GPIO; debug_board_detect = ZOOM2_SMSC911X_GPIO;
...@@ -140,10 +141,10 @@ static inline int omap_zoom2_debugboard_detect(void) ...@@ -140,10 +141,10 @@ static inline int omap_zoom2_debugboard_detect(void)
gpio_direction_input(debug_board_detect); gpio_direction_input(debug_board_detect);
if (!gpio_get_value(debug_board_detect)) { if (!gpio_get_value(debug_board_detect)) {
gpio_free(debug_board_detect); ret = 0;
return 0;
} }
return 1; gpio_free(debug_board_detect);
return ret;
} }
static struct platform_device *zoom2_devices[] __initdata = { static struct platform_device *zoom2_devices[] __initdata = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment