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

Commit 38cbf041 authored by Eduardo Valentin's avatar Eduardo Valentin
Browse files

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



Avoid printing the error message in the EPROBE_DEFER case
where registering cpu cooling at db8500 thermal driver.

Cc: Zhang Rui <rui.zhang@intel.com>
Cc: Grant Likely <grant.likely@linaro.org>
Cc: Rob Herring <robh+dt@kernel.org>
Cc: linux-pm@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Cc: devicetree@vger.kernel.org
Signed-off-by: default avatarEduardo Valentin <edubezval@gmail.com>
parent 412aff94
Loading
Loading
Loading
Loading
+8 −2
Original line number Diff line number Diff line
@@ -30,8 +30,14 @@ static int db8500_cpufreq_cooling_probe(struct platform_device *pdev)

	cdev = cpufreq_cooling_register(cpu_present_mask);
	if (IS_ERR(cdev)) {
		dev_err(&pdev->dev, "Failed to register cooling device\n");
		return PTR_ERR(cdev);
		int ret = PTR_ERR(cdev);

		if (ret != -EPROBE_DEFER)
			dev_err(&pdev->dev,
				"Failed to register cooling device %d\n",
				ret);
				
		return ret;
	}

	platform_set_drvdata(pdev, cdev);