diff options
Diffstat (limited to 'drivers/gpu/nvgpu/therm')
-rw-r--r-- | drivers/gpu/nvgpu/therm/thrmchannel.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/therm/thrmchannel.c b/drivers/gpu/nvgpu/therm/thrmchannel.c index 015e065b..b5a7dfd2 100644 --- a/drivers/gpu/nvgpu/therm/thrmchannel.c +++ b/drivers/gpu/nvgpu/therm/thrmchannel.c | |||
@@ -74,9 +74,8 @@ static struct boardobj *construct_channel_device(struct gk20a *g, | |||
74 | pchannel = (struct therm_channel *)board_obj_ptr; | 74 | pchannel = (struct therm_channel *)board_obj_ptr; |
75 | pchannel_device = (struct therm_channel_device *)board_obj_ptr; | 75 | pchannel_device = (struct therm_channel_device *)board_obj_ptr; |
76 | 76 | ||
77 | pchannel->temp_min = 0; | 77 | g->ops.therm.get_internal_sensor_limits(&pchannel->temp_max, |
78 | pchannel->temp_max = 0; | 78 | &pchannel->temp_min); |
79 | |||
80 | pchannel->scaling = (1 << 8); | 79 | pchannel->scaling = (1 << 8); |
81 | pchannel->offset = 0; | 80 | pchannel->offset = 0; |
82 | 81 | ||