diff options
Diffstat (limited to 'drivers/leds/leds-gpio.c')
-rw-r--r-- | drivers/leds/leds-gpio.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/leds/leds-gpio.c b/drivers/leds/leds-gpio.c index e5225d28f392..c6e4b772b757 100644 --- a/drivers/leds/leds-gpio.c +++ b/drivers/leds/leds-gpio.c | |||
@@ -14,6 +14,7 @@ | |||
14 | #include <linux/init.h> | 14 | #include <linux/init.h> |
15 | #include <linux/platform_device.h> | 15 | #include <linux/platform_device.h> |
16 | #include <linux/leds.h> | 16 | #include <linux/leds.h> |
17 | #include <linux/slab.h> | ||
17 | #include <linux/workqueue.h> | 18 | #include <linux/workqueue.h> |
18 | 19 | ||
19 | #include <asm/gpio.h> | 20 | #include <asm/gpio.h> |
@@ -211,7 +212,6 @@ static int __devinit of_gpio_leds_probe(struct of_device *ofdev, | |||
211 | const struct of_device_id *match) | 212 | const struct of_device_id *match) |
212 | { | 213 | { |
213 | struct device_node *np = ofdev->node, *child; | 214 | struct device_node *np = ofdev->node, *child; |
214 | struct gpio_led led; | ||
215 | struct gpio_led_of_platform_data *pdata; | 215 | struct gpio_led_of_platform_data *pdata; |
216 | int count = 0, ret; | 216 | int count = 0, ret; |
217 | 217 | ||
@@ -226,8 +226,8 @@ static int __devinit of_gpio_leds_probe(struct of_device *ofdev, | |||
226 | if (!pdata) | 226 | if (!pdata) |
227 | return -ENOMEM; | 227 | return -ENOMEM; |
228 | 228 | ||
229 | memset(&led, 0, sizeof(led)); | ||
230 | for_each_child_of_node(np, child) { | 229 | for_each_child_of_node(np, child) { |
230 | struct gpio_led led = {}; | ||
231 | enum of_gpio_flags flags; | 231 | enum of_gpio_flags flags; |
232 | const char *state; | 232 | const char *state; |
233 | 233 | ||