diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2009-09-01 17:26:01 +0100 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2009-09-01 17:26:01 +0100 |
commit | 3645a1764d41afcebd5c619afa3acf9793de3af9 (patch) | |
tree | d353c02deff72d632465ea9572461dc2cdaa294a /meta/packages/linux/linux-omap3-pm-git/zoom2/0005-OMAP-Zoom2-Release-Dbg-board-detect-gpio.patch | |
parent | bfcf81634a14a7d3f6775140f7974f7807fbe081 (diff) | |
parent | 69af3cc6f267dcc492ebac9f1a8cc351a258020d (diff) | |
download | openembedded-core-3645a1764d41afcebd5c619afa3acf9793de3af9.tar.gz openembedded-core-3645a1764d41afcebd5c619afa3acf9793de3af9.tar.bz2 openembedded-core-3645a1764d41afcebd5c619afa3acf9793de3af9.tar.xz openembedded-core-3645a1764d41afcebd5c619afa3acf9793de3af9.zip |
Merge branch 'mturquette/zoom2' of git://pokylinux.org/poky-contrib
Diffstat (limited to 'meta/packages/linux/linux-omap3-pm-git/zoom2/0005-OMAP-Zoom2-Release-Dbg-board-detect-gpio.patch')
-rw-r--r-- | meta/packages/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/packages/linux/linux-omap3-pm-git/zoom2/0005-OMAP-Zoom2-Release-Dbg-board-detect-gpio.patch b/meta/packages/linux/linux-omap3-pm-git/zoom2/0005-OMAP-Zoom2-Release-Dbg-board-detect-gpio.patch new file mode 100644 index 000000000..a01f65f89 --- /dev/null +++ b/meta/packages/linux/linux-omap3-pm-git/zoom2/0005-OMAP-Zoom2-Release-Dbg-board-detect-gpio.patch @@ -0,0 +1,41 @@ +From 04c8398ae7dfdbe0d9aaf27fdda35f6ab91e8b85 Mon Sep 17 00:00:00 2001 +From: Vikram Pandita <vikram.pandita@ti.com> +Date: Thu, 20 Aug 2009 17:31:58 -0500 +Subject: [PATCH 5/5] OMAP: Zoom2: Release Dbg board detect gpio + +Release the Dbg board detection gpio once its purpose is served + +Signed-off-by: Vikram Pandita <vikram.pandita@ti.com> +--- + arch/arm/mach-omap2/board-zoom-debugboard.c | 7 ++++--- + 1 files changed, 4 insertions(+), 3 deletions(-) + +diff --git a/arch/arm/mach-omap2/board-zoom-debugboard.c b/arch/arm/mach-omap2/board-zoom-debugboard.c +index 4dd714d..d80e448 100644 +--- a/arch/arm/mach-omap2/board-zoom-debugboard.c ++++ b/arch/arm/mach-omap2/board-zoom-debugboard.c +@@ -130,6 +130,7 @@ static inline void __init zoom2_init_quaduart(void) + static inline int omap_zoom2_debugboard_detect(void) + { + int debug_board_detect = 0; ++ int ret = 1; + + debug_board_detect = ZOOM2_SMSC911X_GPIO; + +@@ -141,10 +142,10 @@ static inline int omap_zoom2_debugboard_detect(void) + gpio_direction_input(debug_board_detect); + + if (!gpio_get_value(debug_board_detect)) { +- gpio_free(debug_board_detect); +- return 0; ++ ret = 0; + } +- return 1; ++ gpio_free(debug_board_detect); ++ return ret; + } + + static struct platform_device *zoom2_devices[] __initdata = { +-- +1.6.3.2 + |