diff options
author | juhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2008-11-24 11:03:18 +0000 |
---|---|---|
committer | juhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2008-11-24 11:03:18 +0000 |
commit | 31fbc2c9d4fa15bc8df0d153fb49afccabe5f880 (patch) | |
tree | 40ff85cda0828415b6e980316e294969bf60c4ce /target/linux/ar71xx | |
parent | 3c4b909642ce4699d5f6f52f4b603b805b1ec4f7 (diff) |
[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
Diffstat (limited to 'target/linux/ar71xx')
-rw-r--r-- | target/linux/ar71xx/files/arch/mips/ar71xx/platform.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/target/linux/ar71xx/files/arch/mips/ar71xx/platform.c b/target/linux/ar71xx/files/arch/mips/ar71xx/platform.c index aa4711d34..1ebbe748b 100644 --- a/target/linux/ar71xx/files/arch/mips/ar71xx/platform.c +++ b/target/linux/ar71xx/files/arch/mips/ar71xx/platform.c @@ -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; |