Skip to content
Snippets Groups Projects
Commit 38276090 authored by Neil Armstrong's avatar Neil Armstrong Committed by Marek Vasut
Browse files

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: default avatarJean-Jacques Hiblot <jjhiblot@ti.com>
Signed-off-by: default avatarNeil Armstrong <narmstrong@baylibre.com>
parent cc73ba97
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment