summaryrefslogtreecommitdiff
path: root/drivers/led
diff options
context:
space:
mode:
authorPatrick Delaunay <patrick.delaunay@st.com>2018-07-27 16:37:06 +0200
committerTom Rini <trini@konsulko.com>2018-08-10 10:27:32 -0400
commit1f6d81fe3398309cacd79f0fdc809502552d3e0c (patch)
treea38846cf227346b59f1b45fd8371893ee567e86a /drivers/led
parent8e1665102f699ec5605cc2bc8a0ff2aba2defb39 (diff)
downloadu-boot-socfpga-1f6d81fe3398309cacd79f0fdc809502552d3e0c.tar.gz
Revert "dm: led: auto probe() LEDs with "default-state""
This reverts commit bc882f5d5c7b4d6ed5e927bf838863af43c786e7. because this patch adds the probe of LED driver during the binding phasis. It is not allowed in driver model because the drivers (clock, pincontrol) needed by the LED driver can be also probed before the binding of all the device and it is a source of problems. Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
Diffstat (limited to 'drivers/led')
-rw-r--r--drivers/led/led_gpio.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/drivers/led/led_gpio.c b/drivers/led/led_gpio.c
index a36942b934..533587dc47 100644
--- a/drivers/led/led_gpio.c
+++ b/drivers/led/led_gpio.c
@@ -10,7 +10,6 @@
#include <led.h>
#include <asm/gpio.h>
#include <dm/lists.h>
-#include <dm/uclass-internal.h>
struct led_gpio_priv {
struct gpio_desc gpio;
@@ -118,14 +117,6 @@ static int led_gpio_bind(struct udevice *parent)
return ret;
uc_plat = dev_get_uclass_platdata(dev);
uc_plat->label = label;
-
- if (ofnode_read_bool(node, "default-state")) {
- struct udevice *devp;
-
- ret = uclass_get_device_tail(dev, 0, &devp);
- if (ret)
- return ret;
- }
}
return 0;