diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2008-07-26 10:53:23 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2008-07-26 10:53:23 +0000 |
commit | 6d2ba97481de5894a796a384a85126053bfcf25f (patch) | |
tree | 4a23a5ed448fd40c6f12dbf60c409f6cf6d860ba /target/linux/generic-2.6/patches-2.6.25/963-backport_gpio_chip_reserve.patch | |
parent | a0a21d42684a78d27683115297ef16457ca64d12 (diff) | |
download | master-187ad058-6d2ba97481de5894a796a384a85126053bfcf25f.tar.gz master-187ad058-6d2ba97481de5894a796a384a85126053bfcf25f.tar.bz2 master-187ad058-6d2ba97481de5894a796a384a85126053bfcf25f.zip |
[kernel] update to 2.6.25.12
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@11933 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/generic-2.6/patches-2.6.25/963-backport_gpio_chip_reserve.patch')
-rw-r--r-- | target/linux/generic-2.6/patches-2.6.25/963-backport_gpio_chip_reserve.patch | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/target/linux/generic-2.6/patches-2.6.25/963-backport_gpio_chip_reserve.patch b/target/linux/generic-2.6/patches-2.6.25/963-backport_gpio_chip_reserve.patch index 306fb0a169..a4a243e8ec 100644 --- a/target/linux/generic-2.6/patches-2.6.25/963-backport_gpio_chip_reserve.patch +++ b/target/linux/generic-2.6/patches-2.6.25/963-backport_gpio_chip_reserve.patch @@ -19,11 +19,9 @@ Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> --- -diff --git a/drivers/gpio/gpiolib.c b/drivers/gpio/gpiolib.c -index 2ba6127..24c62b8 100644 --- a/drivers/gpio/gpiolib.c +++ b/drivers/gpio/gpiolib.c -@@ -43,6 +43,7 @@ struct gpio_desc { +@@ -43,6 +43,7 @@ /* flag symbols are bit numbers */ #define FLAG_REQUESTED 0 #define FLAG_IS_OUT 1 @@ -31,7 +29,7 @@ index 2ba6127..24c62b8 100644 #ifdef CONFIG_DEBUG_FS const char *label; -@@ -88,9 +89,10 @@ static int gpiochip_find_base(int ngpio) +@@ -88,9 +89,10 @@ int base = -ENOSPC; for (i = ARCH_NR_GPIOS - 1; i >= 0 ; i--) { @@ -44,7 +42,7 @@ index 2ba6127..24c62b8 100644 spare++; if (spare == ngpio) { base = i; -@@ -98,7 +100,8 @@ static int gpiochip_find_base(int ngpio) +@@ -98,7 +100,8 @@ } } else { spare = 0; @@ -54,7 +52,7 @@ index 2ba6127..24c62b8 100644 } } -@@ -108,6 +111,47 @@ static int gpiochip_find_base(int ngpio) +@@ -108,6 +111,47 @@ } /** @@ -102,11 +100,9 @@ index 2ba6127..24c62b8 100644 * gpiochip_add() - register a gpio_chip * @chip: the chip to register, with chip->base initialized * Context: potentially before irqs or kmalloc will work -diff --git a/include/asm-generic/gpio.h b/include/asm-generic/gpio.h -index 464c5b3..ecf675a 100644 --- a/include/asm-generic/gpio.h +++ b/include/asm-generic/gpio.h -@@ -74,6 +74,7 @@ struct gpio_chip { +@@ -74,6 +74,7 @@ extern const char *gpiochip_is_requested(struct gpio_chip *chip, unsigned offset); |