summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/lpwr/lpwr.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/lpwr/lpwr.c')
-rw-r--r--drivers/gpu/nvgpu/lpwr/lpwr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/lpwr/lpwr.c b/drivers/gpu/nvgpu/lpwr/lpwr.c
index 9ff7c2a7..1f15d512 100644
--- a/drivers/gpu/nvgpu/lpwr/lpwr.c
+++ b/drivers/gpu/nvgpu/lpwr/lpwr.c
@@ -363,7 +363,7 @@ int nvgpu_lpwr_enable_pg(struct gk20a *g, bool pstate_lock)
363 is_rppg_supported = nvgpu_lpwr_is_rppg_supported(g, 363 is_rppg_supported = nvgpu_lpwr_is_rppg_supported(g,
364 present_pstate); 364 present_pstate);
365 if (is_rppg_supported) { 365 if (is_rppg_supported) {
366 if (support_gk20a_pmu(g->dev) && g->elpg_enabled) 366 if (g->support_pmu && g->elpg_enabled)
367 status = gk20a_pmu_enable_elpg(g); 367 status = gk20a_pmu_enable_elpg(g);
368 } 368 }
369 369
@@ -393,7 +393,7 @@ int nvgpu_lpwr_disable_pg(struct gk20a *g, bool pstate_lock)
393 is_rppg_supported = nvgpu_lpwr_is_rppg_supported(g, 393 is_rppg_supported = nvgpu_lpwr_is_rppg_supported(g,
394 present_pstate); 394 present_pstate);
395 if (is_rppg_supported) { 395 if (is_rppg_supported) {
396 if (support_gk20a_pmu(g->dev) && g->elpg_enabled) { 396 if (g->support_pmu && g->elpg_enabled) {
397 status = gk20a_pmu_disable_elpg(g); 397 status = gk20a_pmu_disable_elpg(g);
398 if (status) 398 if (status)
399 goto exit_unlock; 399 goto exit_unlock;