]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
usb: gadget: dwc2_udc_otg: return zero when reset property is not present
authorJaehoon Chung <jh80.chung@samsung.com>
Wed, 21 Oct 2020 12:28:41 +0000 (21:28 +0900)
committerMarek Vasut <marex@denx.de>
Sun, 22 Nov 2020 12:18:20 +0000 (13:18 +0100)
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>
drivers/usb/gadget/dwc2_udc_otg.c

index d20ce6147ee3a77abc729258797a17d1d0146742..8a8e2179e4874feeb84528496ed014e436fe1633 100644 (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)