diff options
author | Florian Fainelli <florian@openwrt.org> | 2009-06-04 09:59:28 +0000 |
---|---|---|
committer | Florian Fainelli <florian@openwrt.org> | 2009-06-04 09:59:28 +0000 |
commit | c95420f06d5d62fa91eb5ecdf6574d6da5262f3e (patch) | |
tree | cd50cf27f75b56fb2e08a5fc70ff428db2c9c131 /target/linux/brcm63xx/files/arch/mips/bcm63xx/gpio.c | |
parent | 74dfd77f41a67991da07389787a9a073b4f4ad20 (diff) | |
download | upstream-c95420f06d5d62fa91eb5ecdf6574d6da5262f3e.tar.gz upstream-c95420f06d5d62fa91eb5ecdf6574d6da5262f3e.tar.bz2 upstream-c95420f06d5d62fa91eb5ecdf6574d6da5262f3e.zip |
register gpiochip earlier, allowing gpio-based runtime detection to be performed in board_init callback
SVN-Revision: 16328
Diffstat (limited to 'target/linux/brcm63xx/files/arch/mips/bcm63xx/gpio.c')
-rw-r--r-- | target/linux/brcm63xx/files/arch/mips/bcm63xx/gpio.c | 3 |
1 files changed, 1 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 b78d3fdafa..997fcaa439 100644 --- a/target/linux/brcm63xx/files/arch/mips/bcm63xx/gpio.c +++ b/target/linux/brcm63xx/files/arch/mips/bcm63xx/gpio.c @@ -120,9 +120,8 @@ static struct gpio_chip bcm63xx_gpio_chip = { .ngpio = BCM63XX_GPIO_COUNT, }; -static int __init bcm63xx_gpio_init(void) +int __init bcm63xx_gpio_init(void) { printk(KERN_INFO "registering %d GPIOs\n", BCM63XX_GPIO_COUNT); return gpiochip_add(&bcm63xx_gpio_chip); } -arch_initcall(bcm63xx_gpio_init); |