udc: s3c-hsudc: Silence warning about supplies during deferred probe
authorMarek Szyprowski <m.szyprowski@samsung.com>
Fri, 28 Feb 2020 09:28:08 +0000 (10:28 +0100)
committerFelipe Balbi <balbi@kernel.org>
Sun, 15 Mar 2020 10:04:27 +0000 (12:04 +0200)
Don't confuse user with meaningless warning about the failure in getting
supplies in case of deferred probe.

Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Felipe Balbi <balbi@kernel.org>
drivers/usb/gadget/udc/s3c-hsudc.c

index 21252fb..aaca1b0 100644 (file)
@@ -1285,7 +1285,8 @@ static int s3c_hsudc_probe(struct platform_device *pdev)
        ret = devm_regulator_bulk_get(dev, ARRAY_SIZE(hsudc->supplies),
                                 hsudc->supplies);
        if (ret != 0) {
-               dev_err(dev, "failed to request supplies: %d\n", ret);
+               if (ret != -EPROBE_DEFER)
+                       dev_err(dev, "failed to request supplies: %d\n", ret);
                goto err_supplies;
        }