diff options
author | florian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2010-01-03 20:19:32 +0000 |
---|---|---|
committer | florian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2010-01-03 20:19:32 +0000 |
commit | b6e8369fc62e7fbcdebf7dce0e3a6388ea53a879 (patch) | |
tree | 6e739e981b45cb846578f905e9916d8472e43dee /target/linux/ar7/files/drivers/char/ar7_gpio.c | |
parent | e6c9aacc5937d1f4a0686ae660d7c6f48f998218 (diff) |
[ar7] add support for titan variant (WRTP54G) (#6185)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19022 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ar7/files/drivers/char/ar7_gpio.c')
-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); |