[PATCH] fixup! usb: dwc2: add clk dependency for probe via oftree

Michael Grzeschik m.grzeschik at pengutronix.de
Wed Jan 6 04:42:16 EST 2021


The documentation says this clock is named otg, so we use the
named clock as documented.

Signed-off-by: Michael Grzeschik <m.grzeschik at pengutronix.de>
---
 drivers/usb/dwc2/dwc2.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/usb/dwc2/dwc2.c b/drivers/usb/dwc2/dwc2.c
index 13455479ef..33d418e280 100644
--- a/drivers/usb/dwc2/dwc2.c
+++ b/drivers/usb/dwc2/dwc2.c
@@ -50,7 +50,7 @@ static int dwc2_probe(struct device_d *dev)
 	dwc2->regs = IOMEM(iores->start);
 	dwc2->dev = dev;
 
-	dwc2->clk = clk_get(dev, NULL);
+	dwc2->clk = clk_get(dev, "otg");
 	if (IS_ERR(dwc2->clk)) {
 		ret = PTR_ERR(dwc2->clk);
 		dev_err(dev, "Failed to get USB clock %d\n", ret);
-- 
2.30.0




More information about the barebox mailing list