From 9e31085943dfadaa0f5961f5cbc4f7a240a09c53 Mon Sep 17 00:00:00 2001 From: blogic Date: Thu, 12 Apr 2012 12:33:56 +0000 Subject: [lantiq] update 3.2 patches sync with lantiq kernel series git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31260 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- .../0001-GPIO-add-bindings-for-managed-devices.patch | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) (limited to 'target/linux/lantiq/patches-3.2/0001-GPIO-add-bindings-for-managed-devices.patch') diff --git a/target/linux/lantiq/patches-3.2/0001-GPIO-add-bindings-for-managed-devices.patch b/target/linux/lantiq/patches-3.2/0001-GPIO-add-bindings-for-managed-devices.patch index 765d3c633..a97101338 100644 --- a/target/linux/lantiq/patches-3.2/0001-GPIO-add-bindings-for-managed-devices.patch +++ b/target/linux/lantiq/patches-3.2/0001-GPIO-add-bindings-for-managed-devices.patch @@ -1,7 +1,7 @@ -From 282f1ca84b35f3be68abc4fd8b52e229f3cb6bb7 Mon Sep 17 00:00:00 2001 +From 8817c547f92016b9276ffec88b708c2c16d1f0f1 Mon Sep 17 00:00:00 2001 From: John Crispin Date: Thu, 8 Mar 2012 13:23:53 +0100 -Subject: [PATCH 01/70] GPIO: add bindings for managed devices +Subject: [PATCH 01/73] GPIO: add bindings for managed devices This patch adds 2 functions that allow managed devices to request GPIOs. These GPIOs will then be managed by drivers/base/devres.c. @@ -15,6 +15,8 @@ Signed-off-by: Grant Likely 3 files changed, 95 insertions(+), 1 deletions(-) create mode 100644 drivers/gpio/devres.c +diff --git a/drivers/gpio/Makefile b/drivers/gpio/Makefile +index 4e018d6..76dbd3f 100644 --- a/drivers/gpio/Makefile +++ b/drivers/gpio/Makefile @@ -2,7 +2,7 @@ @@ -26,6 +28,9 @@ Signed-off-by: Grant Likely # Device drivers. Generally keep list sorted alphabetically obj-$(CONFIG_GPIO_GENERIC) += gpio-generic.o +diff --git a/drivers/gpio/devres.c b/drivers/gpio/devres.c +new file mode 100644 +index 0000000..3dd2939 --- /dev/null +++ b/drivers/gpio/devres.c @@ -0,0 +1,90 @@ @@ -119,9 +124,11 @@ Signed-off-by: Grant Likely + gpio_free(gpio); +} +EXPORT_SYMBOL(devm_gpio_free); +diff --git a/include/asm-generic/gpio.h b/include/asm-generic/gpio.h +index 8c86210..8601a02 100644 --- a/include/asm-generic/gpio.h +++ b/include/asm-generic/gpio.h -@@ -175,6 +175,10 @@ extern int gpio_request_one(unsigned gpi +@@ -175,6 +175,10 @@ extern int gpio_request_one(unsigned gpio, unsigned long flags, const char *labe extern int gpio_request_array(const struct gpio *array, size_t num); extern void gpio_free_array(const struct gpio *array, size_t num); @@ -132,3 +139,6 @@ Signed-off-by: Grant Likely #ifdef CONFIG_GPIO_SYSFS /* +-- +1.7.9.1 + -- cgit v1.2.3