diff options
author | Neil Armstrong <narmstrong@baylibre.com> | 2018-04-12 10:13:50 +0200 |
---|---|---|
committer | Marek Vasut <marex@denx.de> | 2018-04-21 18:38:56 +0200 |
commit | 38276090ee7fda6b31cac638d8c5f4fb61f57b0b (patch) | |
tree | 436b866d812e2f853631d5b65a8a46cfeb6fe656 /drivers | |
parent | cc73ba97c008e96df5799dc37acbb04344fb3ac6 (diff) |
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: 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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/usb/host/dwc3-of-simple.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/host/dwc3-of-simple.c b/drivers/usb/host/dwc3-of-simple.c index abc3928f8bd..440dd1027d5 100644 --- a/drivers/usb/host/dwc3-of-simple.c +++ b/drivers/usb/host/dwc3-of-simple.c @@ -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; |