if (!pdev)
goto err_free_leds;
+ memset(&pdata, 0, sizeof(pdata));
pdata.num_leds = num_leds;
pdata.leds = leds;
if (!pdev)
goto err_free_buttons;
+ memset(&pdata, 0, sizeof(pdata));
pdata.poll_interval = poll_interval;
pdata.nbuttons = nbuttons;
pdata.buttons = p;