diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2008-07-21 17:08:14 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2008-07-21 17:08:14 +0000 |
commit | f529a3742043a23da4f715c3664d5a822b1f970c (patch) | |
tree | a4cdaee84e23765d98072df25883f365cbc0d66a /target/linux/generic-2.6/patches-2.6.25/920-backport-gpio-is-valid.patch | |
parent | 3d9c4c9073deaf01d592d6940af21be81d92e88a (diff) | |
download | upstream-f529a3742043a23da4f715c3664d5a822b1f970c.tar.gz upstream-f529a3742043a23da4f715c3664d5a822b1f970c.tar.bz2 upstream-f529a3742043a23da4f715c3664d5a822b1f970c.zip |
surprise :p
SVN-Revision: 11894
Diffstat (limited to 'target/linux/generic-2.6/patches-2.6.25/920-backport-gpio-is-valid.patch')
-rw-r--r-- | target/linux/generic-2.6/patches-2.6.25/920-backport-gpio-is-valid.patch | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/target/linux/generic-2.6/patches-2.6.25/920-backport-gpio-is-valid.patch b/target/linux/generic-2.6/patches-2.6.25/920-backport-gpio-is-valid.patch deleted file mode 100644 index 966270b78e..0000000000 --- a/target/linux/generic-2.6/patches-2.6.25/920-backport-gpio-is-valid.patch +++ /dev/null @@ -1,18 +0,0 @@ -Backport gpio_is_valid() for gpiolib from linux-2.6.26 -Index: linux-2.6.25.10/include/asm-generic/gpio.h -=================================================================== ---- linux-2.6.25.10.orig/include/asm-generic/gpio.h 2008-07-03 05:46:47.000000000 +0200 -+++ linux-2.6.25.10/include/asm-generic/gpio.h 2008-07-20 20:32:12.000000000 +0200 -@@ -16,6 +16,12 @@ - #define ARCH_NR_GPIOS 256 - #endif - -+static inline int gpio_is_valid(int number) -+{ -+ /* only some non-negative numbers are valid */ -+ return ((unsigned)number) < ARCH_NR_GPIOS; -+} -+ - struct seq_file; - - /** |