From: Jaehoon Chung Date: Wed, 21 Oct 2020 12:28:41 +0000 (+0900) Subject: usb: gadget: dwc2_udc_otg: return zero when reset property is not present X-Git-Url: http://git.dujemihanovic.xyz/img/sics.gif?a=commitdiff_plain;h=05dac23261284578ff17952e11340f41127923ac;p=u-boot.git 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 --- diff --git a/drivers/usb/gadget/dwc2_udc_otg.c b/drivers/usb/gadget/dwc2_udc_otg.c index d20ce6147e..8a8e2179e4 100644 --- a/drivers/usb/gadget/dwc2_udc_otg.c +++ b/drivers/usb/gadget/dwc2_udc_otg.c @@ -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)