aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/thermal/imx_thermal.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/thermal/imx_thermal.c b/drivers/thermal/imx_thermal.c
index d80e36eb966c..f94062bd78eb 100644
--- a/drivers/thermal/imx_thermal.c
+++ b/drivers/thermal/imx_thermal.c
@@ -513,8 +513,10 @@ static int imx_thermal_probe(struct platform_device *pdev)
513 data->cdev = cpufreq_cooling_register(cpu_present_mask); 513 data->cdev = cpufreq_cooling_register(cpu_present_mask);
514 if (IS_ERR(data->cdev)) { 514 if (IS_ERR(data->cdev)) {
515 ret = PTR_ERR(data->cdev); 515 ret = PTR_ERR(data->cdev);
516 dev_err(&pdev->dev, 516 if (ret != -EPROBE_DEFER)
517 "failed to register cpufreq cooling device: %d\n", ret); 517 dev_err(&pdev->dev,
518 "failed to register cpufreq cooling device: %d\n",
519 ret);
518 return ret; 520 return ret;
519 } 521 }
520 522