From: Jon Hunter Date: Wed, 19 May 2021 16:35:52 +0000 (+0100) Subject: usb: gadget: tegra-xudc: Don't print error on probe deferral X-Git-Tag: accepted/tizen/unified/20230118.172025~6887^2~134 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=80a3c7f70e9990ed20634ac1a1c55cfe351be0ea;p=platform%2Fkernel%2Flinux-rpi.git usb: gadget: tegra-xudc: Don't print error on probe deferral The Tegra XUDC driver prints the following error when deferring probe if the USB PHY is not found ... ERR KERN tegra-xudc 3550000.usb: failed to get usbphy-0: -517 Deferring probe can be normal and so update to driver to avoid printing this error if probe is being deferred. Signed-off-by: Jon Hunter Link: https://lore.kernel.org/r/20210519163553.212682-1-jonathanh@nvidia.com Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/gadget/udc/tegra-xudc.c b/drivers/usb/gadget/udc/tegra-xudc.c index 66b19db..3ebf78f 100644 --- a/drivers/usb/gadget/udc/tegra-xudc.c +++ b/drivers/usb/gadget/udc/tegra-xudc.c @@ -3520,8 +3520,8 @@ static int tegra_xudc_phy_get(struct tegra_xudc *xudc) &xudc->vbus_nb); if (IS_ERR(xudc->usbphy[i])) { err = PTR_ERR(xudc->usbphy[i]); - dev_err(xudc->dev, "failed to get usbphy-%d: %d\n", - i, err); + dev_err_probe(xudc->dev, err, + "failed to get usbphy-%d\n", i); goto clean_up; } } else if (!xudc->utmi_phy[i]) {