diff options
Diffstat (limited to 'meta/recipes-kernel/linux/linux-omap3-pm-git/zoom2/0005-OMAP-Zoom2-Release-Dbg-board-detect-gpio.patch')
-rw-r--r-- | meta/recipes-kernel/linux/linux-omap3-pm-git/zoom2/0005-OMAP-Zoom2-Release-Dbg-board-detect-gpio.patch | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/meta/recipes-kernel/linux/linux-omap3-pm-git/zoom2/0005-OMAP-Zoom2-Release-Dbg-board-detect-gpio.patch b/meta/recipes-kernel/linux/linux-omap3-pm-git/zoom2/0005-OMAP-Zoom2-Release-Dbg-board-detect-gpio.patch new file mode 100644 index 0000000000..a01f65f890 --- /dev/null +++ b/meta/recipes-kernel/linux/linux-omap3-pm-git/zoom2/0005-OMAP-Zoom2-Release-Dbg-board-detect-gpio.patch | |||
@@ -0,0 +1,41 @@ | |||
1 | From 04c8398ae7dfdbe0d9aaf27fdda35f6ab91e8b85 Mon Sep 17 00:00:00 2001 | ||
2 | From: Vikram Pandita <vikram.pandita@ti.com> | ||
3 | Date: Thu, 20 Aug 2009 17:31:58 -0500 | ||
4 | Subject: [PATCH 5/5] OMAP: Zoom2: Release Dbg board detect gpio | ||
5 | |||
6 | Release the Dbg board detection gpio once its purpose is served | ||
7 | |||
8 | Signed-off-by: Vikram Pandita <vikram.pandita@ti.com> | ||
9 | --- | ||
10 | arch/arm/mach-omap2/board-zoom-debugboard.c | 7 ++++--- | ||
11 | 1 files changed, 4 insertions(+), 3 deletions(-) | ||
12 | |||
13 | diff --git a/arch/arm/mach-omap2/board-zoom-debugboard.c b/arch/arm/mach-omap2/board-zoom-debugboard.c | ||
14 | index 4dd714d..d80e448 100644 | ||
15 | --- a/arch/arm/mach-omap2/board-zoom-debugboard.c | ||
16 | +++ b/arch/arm/mach-omap2/board-zoom-debugboard.c | ||
17 | @@ -130,6 +130,7 @@ static inline void __init zoom2_init_quaduart(void) | ||
18 | static inline int omap_zoom2_debugboard_detect(void) | ||
19 | { | ||
20 | int debug_board_detect = 0; | ||
21 | + int ret = 1; | ||
22 | |||
23 | debug_board_detect = ZOOM2_SMSC911X_GPIO; | ||
24 | |||
25 | @@ -141,10 +142,10 @@ static inline int omap_zoom2_debugboard_detect(void) | ||
26 | gpio_direction_input(debug_board_detect); | ||
27 | |||
28 | if (!gpio_get_value(debug_board_detect)) { | ||
29 | - gpio_free(debug_board_detect); | ||
30 | - return 0; | ||
31 | + ret = 0; | ||
32 | } | ||
33 | - return 1; | ||
34 | + gpio_free(debug_board_detect); | ||
35 | + return ret; | ||
36 | } | ||
37 | |||
38 | static struct platform_device *zoom2_devices[] __initdata = { | ||
39 | -- | ||
40 | 1.6.3.2 | ||
41 | |||