aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/leds/leds-gpio.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/leds/leds-gpio.c')
-rw-r--r--drivers/leds/leds-gpio.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/leds/leds-gpio.c b/drivers/leds/leds-gpio.c
index 78b0e273a903..1bb3f1ab1d91 100644
--- a/drivers/leds/leds-gpio.c
+++ b/drivers/leds/leds-gpio.c
@@ -204,6 +204,9 @@ static struct gpio_leds_priv *gpio_leds_create_of(struct platform_device *pdev)
204 led.default_state = LEDS_GPIO_DEFSTATE_OFF; 204 led.default_state = LEDS_GPIO_DEFSTATE_OFF;
205 } 205 }
206 206
207 if (of_get_property(child, "retain-state-suspended", NULL))
208 led.retain_state_suspended = 1;
209
207 ret = create_gpio_led(&led, &priv->leds[priv->num_leds++], 210 ret = create_gpio_led(&led, &priv->leds[priv->num_leds++],
208 &pdev->dev, NULL); 211 &pdev->dev, NULL);
209 if (ret < 0) { 212 if (ret < 0) {