mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-02-18 06:58:54 +00:00
Revert "dm: led: auto probe() LEDs with "default-state""
This reverts commit bc882f5d5c
.
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>
This commit is contained in:
parent
8e1665102f
commit
1f6d81fe33
1 changed files with 0 additions and 9 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue