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: Jaehoon Chung <jh80.chung@samsung.com>
This commit is contained in:
Jaehoon Chung
2020-10-21 21:28:41 +09:00
committed by Marek Vasut
parent e7f9e1fca9
commit 05dac23261

View File

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