diff options
author | Eduardo Valentin <edubezval@gmail.com> | 2014-12-12 08:58:29 -0500 |
---|---|---|
committer | Eduardo Valentin <edubezval@gmail.com> | 2014-12-12 09:08:07 -0500 |
commit | 38cbf0414ce9f3403fd0a8f508117cb637d693db (patch) | |
tree | 49f4b0247dcbb0eb72295d28e8431c982e9526fc | |
parent | 412aff9497ea55f30b1ae54df918d0aa4d7d8a4b (diff) |
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: Eduardo Valentin <edubezval@gmail.com>
-rw-r--r-- | drivers/thermal/db8500_cpufreq_cooling.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/drivers/thermal/db8500_cpufreq_cooling.c b/drivers/thermal/db8500_cpufreq_cooling.c index 3cc3dd998e6f..28bbff97f3db 100644 --- a/drivers/thermal/db8500_cpufreq_cooling.c +++ b/drivers/thermal/db8500_cpufreq_cooling.c | |||
@@ -30,8 +30,14 @@ static int db8500_cpufreq_cooling_probe(struct platform_device *pdev) | |||
30 | 30 | ||
31 | cdev = cpufreq_cooling_register(cpu_present_mask); | 31 | cdev = cpufreq_cooling_register(cpu_present_mask); |
32 | if (IS_ERR(cdev)) { | 32 | if (IS_ERR(cdev)) { |
33 | dev_err(&pdev->dev, "Failed to register cooling device\n"); | 33 | int ret = PTR_ERR(cdev); |
34 | return PTR_ERR(cdev); | 34 | |
35 | if (ret != -EPROBE_DEFER) | ||
36 | dev_err(&pdev->dev, | ||
37 | "Failed to register cooling device %d\n", | ||
38 | ret); | ||
39 | |||
40 | return ret; | ||
35 | } | 41 | } |
36 | 42 | ||
37 | platform_set_drvdata(pdev, cdev); | 43 | platform_set_drvdata(pdev, cdev); |