[PATCH 2/4] usb: dwc3: remove unneeded EPROBE_DEFER check

Ahmad Fatoum a.fatoum at pengutronix.de
Sat Oct 30 10:54:44 PDT 2021


We early exit on all errors, so no need to single out EPROBE_DEFER.

Signed-off-by: Ahmad Fatoum <a.fatoum at pengutronix.de>
---
 drivers/usb/dwc3/core.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/usb/dwc3/core.c b/drivers/usb/dwc3/core.c
index f618435cb660..fb3cae4de923 100644
--- a/drivers/usb/dwc3/core.c
+++ b/drivers/usb/dwc3/core.c
@@ -1115,8 +1115,6 @@ static int dwc3_probe(struct device_d *dev)
 
 		if (of_find_property(dev->device_node, "clocks", NULL)) {
 			ret = clk_bulk_get(dev, dwc->num_clks, dwc->clks);
-			if (ret == -EPROBE_DEFER)
-				return ret;
 			if (ret)
 				return ret;
 		}
-- 
2.30.2




More information about the barebox mailing list