summaryrefslogtreecommitdiff
path: root/target/linux
diff options
context:
space:
mode:
authorblogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73>2012-02-14 15:05:57 +0000
committerblogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73>2012-02-14 15:05:57 +0000
commitd4d4e1aa21f0a80b409ee93f38e8f9beb011d43c (patch)
tree79353bc2c82d91ba4a7452155e9af611dc1c0f05 /target/linux
parent059d9f49a5e4c1620fc256723847e97783a22b0c (diff)
[lantiq] fixes gpio_export patch
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30521 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux')
-rw-r--r--target/linux/lantiq/patches/205-owrt-gpio-export.patch16
1 files changed, 8 insertions, 8 deletions
diff --git a/target/linux/lantiq/patches/205-owrt-gpio-export.patch b/target/linux/lantiq/patches/205-owrt-gpio-export.patch
index 710d2745c9..7839327e32 100644
--- a/target/linux/lantiq/patches/205-owrt-gpio-export.patch
+++ b/target/linux/lantiq/patches/205-owrt-gpio-export.patch
@@ -1,6 +1,8 @@
---- a/drivers/gpio/gpiolib.c
-+++ b/drivers/gpio/gpiolib.c
-@@ -64,9 +64,9 @@ struct gpio_desc {
+Index: linux-3.1.10/drivers/gpio/gpiolib.c
+===================================================================
+--- linux-3.1.10.orig/drivers/gpio/gpiolib.c 2012-01-18 16:33:18.000000000 +0100
++++ linux-3.1.10/drivers/gpio/gpiolib.c 2012-02-03 20:22:42.554529747 +0100
+@@ -64,9 +64,9 @@
#define GPIO_FLAGS_MASK ((1 << ID_SHIFT) - 1)
#define GPIO_TRIGGER_MASK (BIT(FLAG_TRIG_FALL) | BIT(FLAG_TRIG_RISE))
@@ -12,7 +14,7 @@
};
static struct gpio_desc gpio_desc[ARCH_NR_GPIOS];
-@@ -76,9 +76,9 @@ static DEFINE_IDR(dirent_idr);
+@@ -76,9 +76,9 @@
static inline void desc_set_label(struct gpio_desc *d, const char *label)
{
@@ -24,17 +26,15 @@
}
/* Warn when drivers omit gpio_request() calls -- legal but ill-advised
-@@ -727,7 +727,8 @@ int gpio_export(unsigned gpio, bool dire
+@@ -727,7 +727,6 @@
if (desc->chip->names && desc->chip->names[gpio - desc->chip->base])
ioname = desc->chip->names[gpio - desc->chip->base];
-
-+ else
-+ ioname = gpio_desc[gpio].label;
if (status == 0) {
struct device *dev;
-@@ -1347,11 +1348,11 @@ const char *gpiochip_is_requested(struct
+@@ -1347,11 +1346,11 @@
return NULL;
if (test_bit(FLAG_REQUESTED, &gpio_desc[gpio].flags) == 0)
return NULL;