提交 38276090 编写于 作者: N Neil Armstrong 提交者: Marek Vasut

usb: dwc3-of-simple: fix error check of clk_get_bulk when disabled

The disabled clk API returns -ENOSYS unlike the reset API returning -ENOTSUPP.

Fixes: ca7fdc8b ("usb: host: Add simple of glue driver for DWC3 USB Controllers integration")
Reported-by: NJean-Jacques Hiblot <jjhiblot@ti.com>
Signed-off-by: NNeil Armstrong <narmstrong@baylibre.com>
上级 cc73ba97
......@@ -50,7 +50,7 @@ static int dwc3_of_simple_clk_init(struct udevice *dev,
int ret;
ret = clk_get_bulk(dev, &simple->clks);
if (ret == -ENOTSUPP)
if (ret == -ENOSYS)
return 0;
if (ret)
return ret;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册