diff options
-rw-r--r-- | target/linux/ath79/patches-4.14/0003-leds-add-reset-controller-based-driver.patch | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/target/linux/ath79/patches-4.14/0003-leds-add-reset-controller-based-driver.patch b/target/linux/ath79/patches-4.14/0003-leds-add-reset-controller-based-driver.patch index 495d79288b..d15c77a8dd 100644 --- a/target/linux/ath79/patches-4.14/0003-leds-add-reset-controller-based-driver.patch +++ b/target/linux/ath79/patches-4.14/0003-leds-add-reset-controller-based-driver.patch @@ -33,7 +33,7 @@ Signed-off-by: John Crispin <john@phrozen.org> --- /dev/null +++ b/drivers/leds/leds-reset.c -@@ -0,0 +1,137 @@ +@@ -0,0 +1,140 @@ +/* + * Copyright (C) 2018 John Crispin <john@phrozen.org> + * @@ -112,6 +112,9 @@ Signed-off-by: John Crispin <john@phrozen.org> + if (IS_ERR(led->rst)) + return ERR_PTR(-EINVAL); + ++ fwnode_property_read_string(child, "linux,default-trigger", ++ &led->cdev.default_trigger); ++ + led->cdev.brightness_set = reset_led_set; + ret = devm_of_led_classdev_register(&pdev->dev, np, &led->cdev); + if (ret < 0) |