Commit d3d8425a authored by Stefan Agner's avatar Stefan Agner Committed by Peter Chen

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: default avatarStefan Agner <stefan@agner.ch>
Signed-off-by: default avatarPeter Chen <peter.chen@nxp.com>
parent 1bc7da87
...@@ -307,9 +307,9 @@ static int ci_hdrc_imx_probe(struct platform_device *pdev) ...@@ -307,9 +307,9 @@ static int ci_hdrc_imx_probe(struct platform_device *pdev)
&pdata); &pdata);
if (IS_ERR(data->ci_pdev)) { if (IS_ERR(data->ci_pdev)) {
ret = PTR_ERR(data->ci_pdev); ret = PTR_ERR(data->ci_pdev);
if (ret != -EPROBE_DEFER)
dev_err(&pdev->dev, dev_err(&pdev->dev,
"Can't register ci_hdrc platform device, err=%d\n", "ci_hdrc_add_device failed, err=%d\n", ret);
ret);
goto err_clk; goto err_clk;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment