diff --git a/drivers/leds/leds-gpio.c b/drivers/leds/leds-gpio.c index 9cbcf7e40a15..df7be79dbf24 100644 --- a/drivers/leds/leds-gpio.c +++ b/drivers/leds/leds-gpio.c @@ -296,6 +296,7 @@ static int gpio_led_probe(struct platform_device *pdev) if (IS_ERR(led_dat->gpiod)) { dev_info(dev, "Skipping unavailable LED gpio %s\n", template->name); + led_dat->gpiod = NULL; continue; }