mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-16 12:29:41 +02:00
8935da1972
kinds of funny things :/ git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16937 3c298f89-4303-0410-b956-a3cf2f4a3e73
14 lines
570 B
Diff
14 lines
570 B
Diff
diff --git a/arch/arm/mach-s3c2410/include/mach/gpio-core.h b/arch/arm/mach-s3c2410/include/mach/gpio-core.h
|
|
index 8fe1920..f8b879a 100644
|
|
--- 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_gpiolib_getchip(unsigned int pin)
|
|
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 */
|