Skip to content

Commit 8e11a97

Browse files
mszyprowfelipebalbi
authored andcommitted
usb: dwc2: Silence warning about supplies during deferred probe
Don't confuse user with meaningless warning about the failure in getting supplies in case of deferred probe. Acked-by: Minas Harutyunyan <hminas@synopsys.com> Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org> Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> Signed-off-by: Felipe Balbi <balbi@kernel.org>
1 parent 7334c82 commit 8e11a97

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

drivers/usb/dwc2/platform.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,9 @@ static int dwc2_lowlevel_hw_init(struct dwc2_hsotg *hsotg)
285285
ret = devm_regulator_bulk_get(hsotg->dev, ARRAY_SIZE(hsotg->supplies),
286286
hsotg->supplies);
287287
if (ret) {
288-
dev_err(hsotg->dev, "failed to request supplies: %d\n", ret);
288+
if (ret != -EPROBE_DEFER)
289+
dev_err(hsotg->dev, "failed to request supplies: %d\n",
290+
ret);
289291
return ret;
290292
}
291293
return 0;

0 commit comments

Comments
 (0)