diff options
Diffstat (limited to 'drivers/leds/leds-gpio.c')
-rw-r--r-- | drivers/leds/leds-gpio.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/leds/leds-gpio.c b/drivers/leds/leds-gpio.c index e5225d28f39..0823e2622e8 100644 --- a/drivers/leds/leds-gpio.c +++ b/drivers/leds/leds-gpio.c | |||
@@ -211,7 +211,6 @@ static int __devinit of_gpio_leds_probe(struct of_device *ofdev, | |||
211 | const struct of_device_id *match) | 211 | const struct of_device_id *match) |
212 | { | 212 | { |
213 | struct device_node *np = ofdev->node, *child; | 213 | struct device_node *np = ofdev->node, *child; |
214 | struct gpio_led led; | ||
215 | struct gpio_led_of_platform_data *pdata; | 214 | struct gpio_led_of_platform_data *pdata; |
216 | int count = 0, ret; | 215 | int count = 0, ret; |
217 | 216 | ||
@@ -226,8 +225,8 @@ static int __devinit of_gpio_leds_probe(struct of_device *ofdev, | |||
226 | if (!pdata) | 225 | if (!pdata) |
227 | return -ENOMEM; | 226 | return -ENOMEM; |
228 | 227 | ||
229 | memset(&led, 0, sizeof(led)); | ||
230 | for_each_child_of_node(np, child) { | 228 | for_each_child_of_node(np, child) { |
229 | struct gpio_led led = {}; | ||
231 | enum of_gpio_flags flags; | 230 | enum of_gpio_flags flags; |
232 | const char *state; | 231 | const char *state; |
233 | 232 | ||