aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/brcm63xx/files/arch
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2009-06-04 10:01:03 +0000
committerFlorian Fainelli <florian@openwrt.org>2009-06-04 10:01:03 +0000
commit1208ffaedb5e7472a15427dd91ae237146305ab5 (patch)
tree385bc648a109c1ea147db943fda6da2d25352ed0 /target/linux/brcm63xx/files/arch
parentc95420f06d5d62fa91eb5ecdf6574d6da5262f3e (diff)
downloadupstream-1208ffaedb5e7472a15427dd91ae237146305ab5.tar.gz
upstream-1208ffaedb5e7472a15427dd91ae237146305ab5.tar.bz2
upstream-1208ffaedb5e7472a15427dd91ae237146305ab5.zip
use the correct number of GPIOs for bcm6358
SVN-Revision: 16329
Diffstat (limited to 'target/linux/brcm63xx/files/arch')
-rw-r--r--target/linux/brcm63xx/files/arch/mips/bcm63xx/gpio.c4
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);
}