aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/leds
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/leds')
-rw-r--r--drivers/leds/leds-gpio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/leds/leds-gpio.c b/drivers/leds/leds-gpio.c
index 8a8ba11c5c14..7ea1ea42c2d2 100644
--- a/drivers/leds/leds-gpio.c
+++ b/drivers/leds/leds-gpio.c
@@ -203,7 +203,7 @@ static struct gpio_leds_priv *gpio_leds_create(struct platform_device *pdev)
203 fwnode_property_read_string(child, "linux,default-trigger", 203 fwnode_property_read_string(child, "linux,default-trigger",
204 &led.default_trigger); 204 &led.default_trigger);
205 205
206 if (!fwnode_property_read_string(child, "linux,default_state", 206 if (!fwnode_property_read_string(child, "default-state",
207 &state)) { 207 &state)) {
208 if (!strcmp(state, "keep")) 208 if (!strcmp(state, "keep"))
209 led.default_state = LEDS_GPIO_DEFSTATE_KEEP; 209 led.default_state = LEDS_GPIO_DEFSTATE_KEEP;