UPSTREAM: 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.
Change-Id: I4473e78c1ebc5c945515694b4041b22a48f36d34
Fixes: ca7fdc8b1267 ("usb: host: Add simple of glue driver for DWC3 USB Controllers integration")
Reported-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
(cherry picked from commit 38276090ee7fda6b31cac638d8c5f4fb61f57b0b)
This commit is contained in:
parent
dc229bd7f9
commit
2aad62fa1b
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue