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

Commit 412aff94 authored by Fabio Estevam's avatar Fabio Estevam Committed by Eduardo Valentin
Browse files

thermal: imx: Do not print error message in the EPROBE_DEFER case



During imx_thermal probe we have the following log:

[    1.514819] imx_thermal 2000000.aips-bus:tempmon: failed to register cpufreq cooling device: -517
[    1.515064] platform 2000000.aips-bus:tempmon: Driver imx_thermal requests probe deferral

Avoid printing the error message in the EPROBE_DEFER case.

Signed-off-by: default avatarFabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: default avatarEduardo Valentin <edubezval@gmail.com>
parent a940cb34
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -513,8 +513,10 @@ static int imx_thermal_probe(struct platform_device *pdev)
	data->cdev = cpufreq_cooling_register(cpu_present_mask);
	if (IS_ERR(data->cdev)) {
		ret = PTR_ERR(data->cdev);
		if (ret != -EPROBE_DEFER)
			dev_err(&pdev->dev,
			"failed to register cpufreq cooling device: %d\n", ret);
				"failed to register cpufreq cooling device: %d\n",
				ret);
		return ret;
	}