diff options
Diffstat (limited to 'extras/recipes-kernel/linux/linux-omap-psp-2.6.32/omap3-touchbook/0012-ads7846-don-t-error-out-when-there-s-no-pendown-gpio.patch')
-rw-r--r-- | extras/recipes-kernel/linux/linux-omap-psp-2.6.32/omap3-touchbook/0012-ads7846-don-t-error-out-when-there-s-no-pendown-gpio.patch | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/extras/recipes-kernel/linux/linux-omap-psp-2.6.32/omap3-touchbook/0012-ads7846-don-t-error-out-when-there-s-no-pendown-gpio.patch b/extras/recipes-kernel/linux/linux-omap-psp-2.6.32/omap3-touchbook/0012-ads7846-don-t-error-out-when-there-s-no-pendown-gpio.patch new file mode 100644 index 00000000..24fb9132 --- /dev/null +++ b/extras/recipes-kernel/linux/linux-omap-psp-2.6.32/omap3-touchbook/0012-ads7846-don-t-error-out-when-there-s-no-pendown-gpio.patch | |||
@@ -0,0 +1,30 @@ | |||
1 | From 4c3ef06a333cf1f873a9a8de05af90959a5d1e68 Mon Sep 17 00:00:00 2001 | ||
2 | From: Gregoire Gentil <gregoire@gentil.com> | ||
3 | Date: Fri, 12 Mar 2010 15:04:58 +0100 | ||
4 | Subject: [PATCH 12/17] ads7846: don't error out when there's no pendown gpio | ||
5 | |||
6 | --- | ||
7 | drivers/input/touchscreen/ads7846.c | 7 ------- | ||
8 | 1 files changed, 0 insertions(+), 7 deletions(-) | ||
9 | |||
10 | diff --git a/drivers/input/touchscreen/ads7846.c b/drivers/input/touchscreen/ads7846.c | ||
11 | index 1d9f97c..c72c3ae 100644 | ||
12 | --- a/drivers/input/touchscreen/ads7846.c | ||
13 | +++ b/drivers/input/touchscreen/ads7846.c | ||
14 | @@ -952,13 +952,6 @@ static int __devinit setup_pendown(struct spi_device *spi, struct ads7846 *ts) | ||
15 | return 0; | ||
16 | } | ||
17 | |||
18 | - err = gpio_request(pdata->gpio_pendown, "ads7846_pendown"); | ||
19 | - if (err) { | ||
20 | - dev_err(&spi->dev, "failed to request pendown GPIO%d\n", | ||
21 | - pdata->gpio_pendown); | ||
22 | - return err; | ||
23 | - } | ||
24 | - | ||
25 | ts->gpio_pendown = pdata->gpio_pendown; | ||
26 | return 0; | ||
27 | } | ||
28 | -- | ||
29 | 1.6.6.1 | ||
30 | |||