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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Signed-off-by: Ahmad Fatoum <a.fatoum@xxxxxxxxxxxxxx>
---
 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


_______________________________________________
barebox mailing list
barebox@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox



[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux