summaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorflorian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73>2009-09-08 15:24:06 +0000
committerflorian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73>2009-09-08 15:24:06 +0000
commit90549f8e29075454d06bfc145bf4e7ace3be0edd (patch)
treecaceb8aeea0f6542962bcf1fc7986cee55f2654f /target
parenta4119793ba8e930e0c7b08a5b98d5b3e46e4e575 (diff)
[brcm63xx] prevent gpio-buttons registration failure
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17542 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target')
-rw-r--r--target/linux/brcm63xx/files/arch/mips/bcm63xx/boards/board_bcm963xx.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/target/linux/brcm63xx/files/arch/mips/bcm63xx/boards/board_bcm963xx.c b/target/linux/brcm63xx/files/arch/mips/bcm63xx/boards/board_bcm963xx.c
index b0497767c..5f2151609 100644
--- a/target/linux/brcm63xx/files/arch/mips/bcm63xx/boards/board_bcm963xx.c
+++ b/target/linux/brcm63xx/files/arch/mips/bcm63xx/boards/board_bcm963xx.c
@@ -881,10 +881,12 @@ int __init board_register_devices(void)
platform_device_register(&bcm63xx_gpio_leds);
- bcm63xx_gpio_buttons_data.nbuttons = 1,
- bcm63xx_gpio_buttons_data.buttons = board.reset_btn;
+ if (board.reset_btn) {
+ bcm63xx_gpio_buttons_data.nbuttons = 1,
+ bcm63xx_gpio_buttons_data.buttons = board.reset_btn;
- platform_device_register(&bcm63xx_gpio_buttons_device);
+ platform_device_register(&bcm63xx_gpio_buttons_device);
+ }
return 0;
}