1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2025-04-21 12:27:27 +03:00

[ar7] add support for titan variant (WRTP54G) (#6185)

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19022 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
florian
2010-01-03 20:19:32 +00:00
parent e6c9aacc59
commit b6e8369fc6
8 changed files with 705 additions and 11 deletions

View File

@@ -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);