summaryrefslogtreecommitdiffstats
path: root/drivers/usb/chipidea
diff options
context:
space:
mode:
authorStefan Agner <stefan@agner.ch>2016-01-27 16:55:45 -0800
committerPeter Chen <peter.chen@nxp.com>2016-02-29 13:37:52 +0800
commitd3d8425a21ed1b14bc896f827ee495e06bff2504 (patch)
tree12246e7d241d54dc6641f14a483c1fbdf1b523ff /drivers/usb/chipidea
parent1bc7da87c7410c6990c3251589e3854e64c55af2 (diff)
downloadop-kernel-dev-d3d8425a21ed1b14bc896f827ee495e06bff2504.zip
op-kernel-dev-d3d8425a21ed1b14bc896f827ee495e06bff2504.tar.gz
usb: chipidea: imx: avoid EPROBE_DEFER printed as error
Avoid printing an error if adding the device failes with return value EPROBE_DEFFER. This may happen e.g. due to missing GPIO for the vbus-supply regulator. Signed-off-by: Stefan Agner <stefan@agner.ch> Signed-off-by: Peter Chen <peter.chen@nxp.com>
Diffstat (limited to 'drivers/usb/chipidea')
-rw-r--r--drivers/usb/chipidea/ci_hdrc_imx.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/usb/chipidea/ci_hdrc_imx.c b/drivers/usb/chipidea/ci_hdrc_imx.c
index 1622b0d..9ce8c9f 100644
--- a/drivers/usb/chipidea/ci_hdrc_imx.c
+++ b/drivers/usb/chipidea/ci_hdrc_imx.c
@@ -307,9 +307,9 @@ static int ci_hdrc_imx_probe(struct platform_device *pdev)
&pdata);
if (IS_ERR(data->ci_pdev)) {
ret = PTR_ERR(data->ci_pdev);
- dev_err(&pdev->dev,
- "Can't register ci_hdrc platform device, err=%d\n",
- ret);
+ if (ret != -EPROBE_DEFER)
+ dev_err(&pdev->dev,
+ "ci_hdrc_add_device failed, err=%d\n", ret);
goto err_clk;
}
OpenPOWER on IntegriCloud