Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -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);
		if (ret != -EPROBE_DEFER)
			dev_err(&pdev->dev,
			"Can't register ci_hdrc platform device, err=%d\n",
			ret);
				"ci_hdrc_add_device failed, err=%d\n", ret);
		goto err_clk;
	}