usb: chipidea: imx: avoid EPROBE_DEFER printed as error
PATCH 1/1 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 <[email protected]>
--- drivers/usb/chipidea/ci_hdrc_imx.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/usb/chipidea/ci_hdrc_imx.c +3 -3
@@ -302,9 +302,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; }
Signature · 1 line
2.7.0