mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-08-21 21:05:31 +03:00
[ar71xx] fix gpio-leds, and gpio-buttons platform data initialization
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13337 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
3c4b909642
commit
31fbc2c9d4
@ -347,6 +347,7 @@ void __init ar71xx_add_device_leds_gpio(int id, unsigned num_leds,
|
||||
if (!pdev)
|
||||
goto err_free_leds;
|
||||
|
||||
memset(&pdata, 0, sizeof(pdata));
|
||||
pdata.num_leds = num_leds;
|
||||
pdata.leds = leds;
|
||||
|
||||
@ -387,6 +388,7 @@ void __init ar71xx_add_device_gpio_buttons(int id,
|
||||
if (!pdev)
|
||||
goto err_free_buttons;
|
||||
|
||||
memset(&pdata, 0, sizeof(pdata));
|
||||
pdata.poll_interval = poll_interval;
|
||||
pdata.nbuttons = nbuttons;
|
||||
pdata.buttons = p;
|
||||
|
Loading…
Reference in New Issue
Block a user