mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-04-21 12:27:27 +03: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:
@@ -881,10 +881,12 @@ int __init board_register_devices(void)
|
|||||||
|
|
||||||
platform_device_register(&bcm63xx_gpio_leds);
|
platform_device_register(&bcm63xx_gpio_leds);
|
||||||
|
|
||||||
bcm63xx_gpio_buttons_data.nbuttons = 1,
|
if (board.reset_btn) {
|
||||||
bcm63xx_gpio_buttons_data.buttons = 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;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user