mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-12-25 14:56:47 +02:00
[brcm63xx] prevent gpio-buttons registration failure
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17542 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
a4119793ba
commit
90549f8e29
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user