diff options
author | Florian Fainelli <florian@openwrt.org> | 2009-06-04 10:01:03 +0000 |
---|---|---|
committer | Florian Fainelli <florian@openwrt.org> | 2009-06-04 10:01:03 +0000 |
commit | b904d677824bcf73a1b2f3ebc2d49e8ad3c2ad07 (patch) | |
tree | 4428f716e457fc1b4db15975aa237b41b81e3a87 /target/linux/brcm63xx/files/arch | |
parent | b86d85140fac67279221bfdac1d85fdbb0254f97 (diff) | |
download | master-187ad058-b904d677824bcf73a1b2f3ebc2d49e8ad3c2ad07.tar.gz master-187ad058-b904d677824bcf73a1b2f3ebc2d49e8ad3c2ad07.tar.bz2 master-187ad058-b904d677824bcf73a1b2f3ebc2d49e8ad3c2ad07.zip |
[brcm63xx] use the correct number of GPIOs for bcm6358
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16329 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/brcm63xx/files/arch')
-rw-r--r-- | target/linux/brcm63xx/files/arch/mips/bcm63xx/gpio.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/target/linux/brcm63xx/files/arch/mips/bcm63xx/gpio.c b/target/linux/brcm63xx/files/arch/mips/bcm63xx/gpio.c index 997fcaa439..97e3730c34 100644 --- a/target/linux/brcm63xx/files/arch/mips/bcm63xx/gpio.c +++ b/target/linux/brcm63xx/files/arch/mips/bcm63xx/gpio.c @@ -117,11 +117,11 @@ static struct gpio_chip bcm63xx_gpio_chip = { .get = bcm63xx_gpio_get, .set = bcm63xx_gpio_set, .base = 0, - .ngpio = BCM63XX_GPIO_COUNT, }; int __init bcm63xx_gpio_init(void) { - printk(KERN_INFO "registering %d GPIOs\n", BCM63XX_GPIO_COUNT); + bcm63xx_gpio_chip.ngpio = bcm63xx_gpio_count(); + printk(KERN_INFO "registering %d GPIOs\n", bcm63xx_gpio_chip.ngpio); return gpiochip_add(&bcm63xx_gpio_chip); } |