mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-02-17 22:49:02 +00:00
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: ca7fdc8b12
("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>
This commit is contained in:
parent
cc73ba97c0
commit
38276090ee
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue