diff options
author | Florian Fainelli <florian@openwrt.org> | 2010-01-03 20:19:32 +0000 |
---|---|---|
committer | Florian Fainelli <florian@openwrt.org> | 2010-01-03 20:19:32 +0000 |
commit | 5a481b16add96022b64d5cc6494b5aa6b17c21f0 (patch) | |
tree | e0c82b81e42cd47f20614aaf956a53c5fa676c99 /target/linux/ar7/files/drivers | |
parent | 144fd07cd846e77439125feab06ee4af3f23cec3 (diff) | |
download | upstream-5a481b16add96022b64d5cc6494b5aa6b17c21f0.tar.gz upstream-5a481b16add96022b64d5cc6494b5aa6b17c21f0.tar.bz2 upstream-5a481b16add96022b64d5cc6494b5aa6b17c21f0.zip |
add support for titan variant (WRTP54G) (#6185)
SVN-Revision: 19022
Diffstat (limited to 'target/linux/ar7/files/drivers')
-rw-r--r-- | target/linux/ar7/files/drivers/char/ar7_gpio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/ar7/files/drivers/char/ar7_gpio.c b/target/linux/ar7/files/drivers/char/ar7_gpio.c index 16460cdd5e..6b38bbd89f 100644 --- a/target/linux/ar7/files/drivers/char/ar7_gpio.c +++ b/target/linux/ar7/files/drivers/char/ar7_gpio.c @@ -98,7 +98,7 @@ static int ar7_gpio_open(struct inode *inode, struct file *file) { int m = iminor(inode); - if (m >= AR7_GPIO_MAX) + if (m >= (ar7_is_titan() ? TITAN_GPIO_MAX : AR7_GPIO_MAX)) return -EINVAL; return nonseekable_open(inode, file); |