diff options
author | Fabio Estevam <fabio.estevam@freescale.com> | 2014-12-11 16:11:40 -0500 |
---|---|---|
committer | Eduardo Valentin <edubezval@gmail.com> | 2014-12-12 08:53:46 -0500 |
commit | 412aff9497ea55f30b1ae54df918d0aa4d7d8a4b (patch) | |
tree | a906435a4bfe3e54bc3cb3ceaa8a0e5c47f64f58 /drivers/thermal | |
parent | a940cb34fed73b2d4809a4575f2981d5927e2c21 (diff) |
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: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
Diffstat (limited to 'drivers/thermal')
-rw-r--r-- | drivers/thermal/imx_thermal.c | 6 |
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 | ||