diff options
-rw-r--r-- | drivers/thermal/kirkwood_thermal.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/thermal/kirkwood_thermal.c b/drivers/thermal/kirkwood_thermal.c index e5500edb5285..d2e05eec722a 100644 --- a/drivers/thermal/kirkwood_thermal.c +++ b/drivers/thermal/kirkwood_thermal.c | |||
@@ -41,8 +41,8 @@ static int kirkwood_get_temp(struct thermal_zone_device *thermal, | |||
41 | reg = readl_relaxed(priv->sensor); | 41 | reg = readl_relaxed(priv->sensor); |
42 | 42 | ||
43 | /* Valid check */ | 43 | /* Valid check */ |
44 | if (!(reg >> KIRKWOOD_THERMAL_VALID_OFFSET) & | 44 | if (!((reg >> KIRKWOOD_THERMAL_VALID_OFFSET) & |
45 | KIRKWOOD_THERMAL_VALID_MASK) { | 45 | KIRKWOOD_THERMAL_VALID_MASK)) { |
46 | dev_err(&thermal->device, | 46 | dev_err(&thermal->device, |
47 | "Temperature sensor reading not valid\n"); | 47 | "Temperature sensor reading not valid\n"); |
48 | return -EIO; | 48 | return -EIO; |