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:
Neil Armstrong 2018-04-12 10:13:50 +02:00 committed by Frank Wang
parent dc229bd7f9
commit 2aad62fa1b
1 changed files with 1 additions and 1 deletions

View File

@ -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;