Commit 997a107a authored by Jaehoon Chung's avatar Jaehoon Chung Committed by Marek Vasut

usb: gadget: dwc2_udc_otg: return zero when reset property is not present

If reset DT property is not present, -ENOENT is returned.
But it's not really error.
Signed-off-by: default avatarJaehoon Chung <jh80.chung@samsung.com>
parent 853eef0e
Pipeline #5064 passed with stages
in 46 minutes and 16 seconds
......@@ -1048,7 +1048,7 @@ static int dwc2_udc_otg_reset_init(struct udevice *dev,
int ret;
ret = reset_get_bulk(dev, resets);
if (ret == -ENOTSUPP)
if (ret == -ENOTSUPP || ret == -ENOENT)
return 0;
if (ret)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment