[brcm63xx] add support for 2.6.37, patches from KanjiMonster
[openwrt.git] / target / linux / s3c24xx / patches-2.6.30 / 130-fix-s3c_gpiolib_getchip.patch
1 --- a/arch/arm/mach-s3c2410/include/mach/gpio-core.h
2 +++ b/arch/arm/mach-s3c2410/include/mach/gpio-core.h
3 @@ -28,7 +28,7 @@ static inline struct s3c_gpio_chip *s3c_
4 return NULL;
5
6 chip = &s3c24xx_gpios[pin/32];
7 - return (S3C2410_GPIO_OFFSET(pin) > chip->chip.ngpio) ? chip : NULL;
8 + return (S3C2410_GPIO_OFFSET(pin) < chip->chip.ngpio) ? chip : NULL;
9 }
10
11 #endif /* __ASM_ARCH_GPIO_CORE_H */
This page took 0.042263 seconds and 5 git commands to generate.