From mboxrd@z Thu Jan 1 00:00:00 1970 From: Patrick Delaunay Date: Tue, 24 Jul 2018 10:58:29 +0200 Subject: [U-Boot] [PATCH v3 2/5] Revert "dm: led: auto probe() LEDs with "default-state"" In-Reply-To: <1532422712-15107-1-git-send-email-patrick.delaunay@st.com> References: <1532422712-15107-1-git-send-email-patrick.delaunay@st.com> Message-ID: <1532422712-15107-3-git-send-email-patrick.delaunay@st.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 --- Changes in v3: - add motivation in revert commit Changes in v2: None drivers/led/led_gpio.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/drivers/led/led_gpio.c b/drivers/led/led_gpio.c index a36942b..533587d 100644 --- a/drivers/led/led_gpio.c +++ b/drivers/led/led_gpio.c @@ -10,7 +10,6 @@ #include #include #include -#include 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; -- 2.7.4