aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/thermal/armada_thermal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/thermal/armada_thermal.c b/drivers/thermal/armada_thermal.c
index 92f67d40f2e9..1c9830b2c84d 100644
--- a/drivers/thermal/armada_thermal.c
+++ b/drivers/thermal/armada_thermal.c
@@ -357,7 +357,7 @@ static int armada_get_temp_legacy(struct thermal_zone_device *thermal,
357 int ret; 357 int ret;
358 358
359 /* Valid check */ 359 /* Valid check */
360 if (armada_is_valid(priv)) { 360 if (!armada_is_valid(priv)) {
361 dev_err(priv->dev, 361 dev_err(priv->dev,
362 "Temperature sensor reading not valid\n"); 362 "Temperature sensor reading not valid\n");
363 return -EIO; 363 return -EIO;