diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gv11b/pmu_gv11b.c')
-rw-r--r-- | drivers/gpu/nvgpu/gv11b/pmu_gv11b.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gv11b/pmu_gv11b.c b/drivers/gpu/nvgpu/gv11b/pmu_gv11b.c index a9f183b1..1001ba16 100644 --- a/drivers/gpu/nvgpu/gv11b/pmu_gv11b.c +++ b/drivers/gpu/nvgpu/gv11b/pmu_gv11b.c | |||
@@ -124,7 +124,7 @@ int gv11b_pmu_setup_elpg(struct gk20a *g) | |||
124 | 124 | ||
125 | nvgpu_log_fn(g, " "); | 125 | nvgpu_log_fn(g, " "); |
126 | 126 | ||
127 | if (g->elpg_enabled) { | 127 | if (g->can_elpg && g->elpg_enabled) { |
128 | reg_writes = ((sizeof(_pginitseq_gv11b) / | 128 | reg_writes = ((sizeof(_pginitseq_gv11b) / |
129 | sizeof((_pginitseq_gv11b)[0]))); | 129 | sizeof((_pginitseq_gv11b)[0]))); |
130 | /* Initialize registers with production values*/ | 130 | /* Initialize registers with production values*/ |