1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-12-13 09:37:10 +02:00
openwrt-xburst/target/linux/s3c24xx/patches-2.6.30/130-fix-s3c_gpiolib_getchip.patch
florian 93c2989706 [s3c24xx] refresh patches and fix build failure on wm8753-reg_cache.patch (#5641)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17182 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-08-08 18:56:14 +00:00

12 lines
398 B
Diff

--- a/arch/arm/mach-s3c2410/include/mach/gpio-core.h
+++ b/arch/arm/mach-s3c2410/include/mach/gpio-core.h
@@ -28,7 +28,7 @@ static inline struct s3c_gpio_chip *s3c_
return NULL;
chip = &s3c24xx_gpios[pin/32];
- return (S3C2410_GPIO_OFFSET(pin) > chip->chip.ngpio) ? chip : NULL;
+ return (S3C2410_GPIO_OFFSET(pin) < chip->chip.ngpio) ? chip : NULL;
}
#endif /* __ASM_ARCH_GPIO_CORE_H */