|
@@ -211,7 +211,6 @@ static int __devinit of_gpio_leds_probe(struct of_device *ofdev,
|
|
const struct of_device_id *match)
|
|
const struct of_device_id *match)
|
|
{
|
|
{
|
|
struct device_node *np = ofdev->node, *child;
|
|
struct device_node *np = ofdev->node, *child;
|
|
- struct gpio_led led;
|
|
|
|
struct gpio_led_of_platform_data *pdata;
|
|
struct gpio_led_of_platform_data *pdata;
|
|
int count = 0, ret;
|
|
int count = 0, ret;
|
|
|
|
|
|
@@ -226,8 +225,8 @@ static int __devinit of_gpio_leds_probe(struct of_device *ofdev,
|
|
if (!pdata)
|
|
if (!pdata)
|
|
return -ENOMEM;
|
|
return -ENOMEM;
|
|
|
|
|
|
- memset(&led, 0, sizeof(led));
|
|
|
|
for_each_child_of_node(np, child) {
|
|
for_each_child_of_node(np, child) {
|
|
|
|
+ struct gpio_led led = {};
|
|
enum of_gpio_flags flags;
|
|
enum of_gpio_flags flags;
|
|
const char *state;
|
|
const char *state;
|
|
|
|
|