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 | 104b3386a23c4179fb3a993bed106c256625a70d (patch) | |
tree | 2fe999020575731d650df26a0a188e045f2db29e /target/linux/generic-2.6/patches-2.6.25/964-backport_gpiolib_fix_off_by_one_errors.patch | |
parent | bdfc0556b878cc06a0741983227a8f166079c50d (diff) | |
download | mtk-20170518-104b3386a23c4179fb3a993bed106c256625a70d.zip mtk-20170518-104b3386a23c4179fb3a993bed106c256625a70d.tar.gz mtk-20170518-104b3386a23c4179fb3a993bed106c256625a70d.tar.bz2 |
update to 2.6.25.12
SVN-Revision: 11933
Diffstat (limited to 'target/linux/generic-2.6/patches-2.6.25/964-backport_gpiolib_fix_off_by_one_errors.patch')
-rw-r--r-- | target/linux/generic-2.6/patches-2.6.25/964-backport_gpiolib_fix_off_by_one_errors.patch | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/target/linux/generic-2.6/patches-2.6.25/964-backport_gpiolib_fix_off_by_one_errors.patch b/target/linux/generic-2.6/patches-2.6.25/964-backport_gpiolib_fix_off_by_one_errors.patch index 715f9ab..74d7247 100644 --- a/target/linux/generic-2.6/patches-2.6.25/964-backport_gpiolib_fix_off_by_one_errors.patch +++ b/target/linux/generic-2.6/patches-2.6.25/964-backport_gpiolib_fix_off_by_one_errors.patch @@ -15,11 +15,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 7f138c6..beaf6b3 100644 --- a/drivers/gpio/gpiolib.c +++ b/drivers/gpio/gpiolib.c -@@ -127,7 +127,7 @@ int __init gpiochip_reserve(int start, int ngpio) +@@ -127,7 +127,7 @@ unsigned long flags; int i; @@ -28,7 +26,7 @@ index 7f138c6..beaf6b3 100644 return -EINVAL; spin_lock_irqsave(&gpio_lock, flags); -@@ -170,7 +170,7 @@ int gpiochip_add(struct gpio_chip *chip) +@@ -170,7 +170,7 @@ unsigned id; int base = chip->base; @@ -37,7 +35,7 @@ index 7f138c6..beaf6b3 100644 && base >= 0) { status = -EINVAL; goto fail; -@@ -207,7 +207,7 @@ fail: +@@ -207,7 +207,7 @@ /* failures here can mean systems won't boot... */ if (status) pr_err("gpiochip_add: gpios %d..%d (%s) not registered\n", |