leds: pca963x: Add missing initialiation of struct led_info.flags
authorGeert Uytterhoeven <geert@linux-m68k.org>
Sun, 15 Mar 2015 10:41:52 +0000 (03:41 -0700)
committerBryan Wu <cooloney@gmail.com>
Mon, 30 Mar 2015 18:55:48 +0000 (11:55 -0700)
commita44b0f5edfc63dc06af9bb0ae473f7852d8d2cb6
treea42228eae3fb2c362982eab3a024314ccfe40458
parent9647507aff4d885d98a884a634d360b8f2d24c10
leds: pca963x: Add missing initialiation of struct led_info.flags

Only the name and default_trigger fields are initialized.
Other fields (currently flags only) contain random stack data.
Pre-initialize the led structure completely to fix this.

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Bryan Wu <cooloney@gmail.com>
drivers/leds/leds-pca963x.c