summaryrefslogtreecommitdiff
path: root/drivers/usb/chipidea/ci_hdrc_msm.c
diff options
context:
space:
mode:
authorStephen Boyd <stephen.boyd@linaro.org>2016-12-29 01:57:07 +0300
committerPeter Chen <peter.chen@nxp.com>2017-01-20 10:27:38 +0300
commited04f19f28ff4900fe9d26b03e5c14600c072391 (patch)
treebfff698d0848f08c0a5ef612ca3d1e880e1884d1 /drivers/usb/chipidea/ci_hdrc_msm.c
parent11893dae63da0f5b251cf7f9a24d64c8ff4771ff (diff)
downloadlinux-ed04f19f28ff4900fe9d26b03e5c14600c072391.tar.xz
usb: chipidea: msm: Be silent on probe defer errors
If something fails in ci_hdrc_add_device() due to probe defer, we shouldn't print an error message. Be silent in this case as we'll try probe again later. Acked-by: Peter Chen <peter.chen@nxp.com> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Stephen Boyd <stephen.boyd@linaro.org> Signed-off-by: Peter Chen <peter.chen@nxp.com>
Diffstat (limited to 'drivers/usb/chipidea/ci_hdrc_msm.c')
-rw-r--r--drivers/usb/chipidea/ci_hdrc_msm.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/usb/chipidea/ci_hdrc_msm.c b/drivers/usb/chipidea/ci_hdrc_msm.c
index 316044dba0ac..f1ede7909f54 100644
--- a/drivers/usb/chipidea/ci_hdrc_msm.c
+++ b/drivers/usb/chipidea/ci_hdrc_msm.c
@@ -262,8 +262,9 @@ static int ci_hdrc_msm_probe(struct platform_device *pdev)
plat_ci = ci_hdrc_add_device(&pdev->dev, pdev->resource,
pdev->num_resources, &ci->pdata);
if (IS_ERR(plat_ci)) {
- dev_err(&pdev->dev, "ci_hdrc_add_device failed!\n");
ret = PTR_ERR(plat_ci);
+ if (ret != -EPROBE_DEFER)
+ dev_err(&pdev->dev, "ci_hdrc_add_device failed!\n");
goto err_mux;
}