diff options
Diffstat (limited to 'drivers/gpu/nvgpu/common/therm')
-rw-r--r-- | drivers/gpu/nvgpu/common/therm/therm_gp106.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/common/therm/therm_gp106.c b/drivers/gpu/nvgpu/common/therm/therm_gp106.c index cc3127d7..b22cefeb 100644 --- a/drivers/gpu/nvgpu/common/therm/therm_gp106.c +++ b/drivers/gpu/nvgpu/common/therm/therm_gp106.c | |||
@@ -44,8 +44,8 @@ int gp106_get_internal_sensor_curr_temp(struct gk20a *g, u32 *temp_f24_8) | |||
44 | 44 | ||
45 | readval = gk20a_readl(g, therm_temp_sensor_tsense_r()); | 45 | readval = gk20a_readl(g, therm_temp_sensor_tsense_r()); |
46 | 46 | ||
47 | if (!(therm_temp_sensor_tsense_state_v(readval) & | 47 | if ((therm_temp_sensor_tsense_state_v(readval) & |
48 | therm_temp_sensor_tsense_state_valid_v())) { | 48 | therm_temp_sensor_tsense_state_valid_v()) == 0U) { |
49 | nvgpu_err(g, | 49 | nvgpu_err(g, |
50 | "Attempt to read temperature while sensor is OFF!"); | 50 | "Attempt to read temperature while sensor is OFF!"); |
51 | err = -EINVAL; | 51 | err = -EINVAL; |