leds: leds-gpio: Fix the "default-state" property check
[firefly-linux-kernel-4.4.55.git] / drivers / leds / leds-gpio.c
index 868e6fc17cbad51725412adf483cd4b2f4e8d788..5fb4440127d99d4cc58cd765a4936ce3b77e5794 100644 (file)
@@ -203,7 +203,7 @@ static struct gpio_leds_priv *gpio_leds_create(struct platform_device *pdev)
                fwnode_property_read_string(child, "linux,default-trigger",
                                            &led.default_trigger);
 
-               if (!fwnode_property_read_string(child, "linux,default_state",
+               if (!fwnode_property_read_string(child, "default-state",
                                                 &state)) {
                        if (!strcmp(state, "keep"))
                                led.default_state = LEDS_GPIO_DEFSTATE_KEEP;