summaryrefslogtreecommitdiffstats
path: root/recipes-kernel/linux/linux-mainline-3.2/touchbook/0001-omap3-touchbook-remove-mmc-gpio_wp.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-kernel/linux/linux-mainline-3.2/touchbook/0001-omap3-touchbook-remove-mmc-gpio_wp.patch')
-rw-r--r--recipes-kernel/linux/linux-mainline-3.2/touchbook/0001-omap3-touchbook-remove-mmc-gpio_wp.patch39
1 files changed, 39 insertions, 0 deletions
diff --git a/recipes-kernel/linux/linux-mainline-3.2/touchbook/0001-omap3-touchbook-remove-mmc-gpio_wp.patch b/recipes-kernel/linux/linux-mainline-3.2/touchbook/0001-omap3-touchbook-remove-mmc-gpio_wp.patch
new file mode 100644
index 00000000..eb77607b
--- /dev/null
+++ b/recipes-kernel/linux/linux-mainline-3.2/touchbook/0001-omap3-touchbook-remove-mmc-gpio_wp.patch
@@ -0,0 +1,39 @@
1From 2b3c730256f7c9ab32beaccf33f44713d25f4a85 Mon Sep 17 00:00:00 2001
2From: Robert Nelson <robertcnelson@gmail.com>
3Date: Fri, 25 Feb 2011 10:41:07 -0600
4Subject: [PATCH 1/2] omap3: touchbook: remove mmc gpio_wp
5
6Signed-off-by: Robert Nelson <robertcnelson@gmail.com>
7---
8 arch/arm/mach-omap2/board-omap3touchbook.c | 8 +-------
9 1 files changed, 1 insertions(+), 7 deletions(-)
10
11diff --git a/arch/arm/mach-omap2/board-omap3touchbook.c b/arch/arm/mach-omap2/board-omap3touchbook.c
12index a2d0d19..6b4cd92 100644
13--- a/arch/arm/mach-omap2/board-omap3touchbook.c
14+++ b/arch/arm/mach-omap2/board-omap3touchbook.c
15@@ -99,7 +99,7 @@ static struct omap2_hsmmc_info mmc[] = {
16 {
17 .mmc = 1,
18 .caps = MMC_CAP_4_BIT_DATA | MMC_CAP_8_BIT_DATA,
19- .gpio_wp = 29,
20+ .gpio_wp = -EINVAL,
21 },
22 {} /* Terminator */
23 };
24@@ -117,12 +117,6 @@ static struct gpio_led gpio_leds[];
25 static int touchbook_twl_gpio_setup(struct device *dev,
26 unsigned gpio, unsigned ngpio)
27 {
28- if (system_rev >= 0x20 && system_rev <= 0x34301000) {
29- omap_mux_init_gpio(23, OMAP_PIN_INPUT);
30- mmc[0].gpio_wp = 23;
31- } else {
32- omap_mux_init_gpio(29, OMAP_PIN_INPUT);
33- }
34 /* gpio + 0 is "mmc0_cd" (input/IRQ) */
35 mmc[0].gpio_cd = gpio + 0;
36 omap2_hsmmc_init(mmc);
37--
381.7.7.4
39