diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2008-11-24 11:03:18 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2008-11-24 11:03:18 +0000 |
commit | b421c22787131b8eca32059d9bbcd1e36cbdead0 (patch) | |
tree | 6d4ba8893a2c8d9e339918caae3c2bdbb23c537c /target/linux/ar71xx | |
parent | dd2ab5bfb02b649664ed3c20fb70c1daf5575018 (diff) | |
download | mtk-20170518-b421c22787131b8eca32059d9bbcd1e36cbdead0.zip mtk-20170518-b421c22787131b8eca32059d9bbcd1e36cbdead0.tar.gz mtk-20170518-b421c22787131b8eca32059d9bbcd1e36cbdead0.tar.bz2 |
fix gpio-leds, and gpio-buttons platform data initialization
SVN-Revision: 13337
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 aa4711d..1ebbe74 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; |