From 2c822a63885ec79ac2d860e13438c6154e23e5d0 Mon Sep 17 00:00:00 2001 From: Terje Bergstrom Date: Fri, 12 May 2017 10:32:11 -0700 Subject: gpu: nvgpu: Remove uses of platform->can_elpg Remove newly introduced uses of gk20a_platform->can_elpg. Rename the field to can_elpg_init and replace all uses with gk20a->can_elpg. Change-Id: Id6e84d4c16159b5da80c583a8a94a9c5cc2423ec Signed-off-by: Terje Bergstrom Reviewed-on: http://git-master/r/1480955 Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/lpwr/lpwr.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'drivers/gpu/nvgpu/lpwr/lpwr.c') diff --git a/drivers/gpu/nvgpu/lpwr/lpwr.c b/drivers/gpu/nvgpu/lpwr/lpwr.c index 8fa92b62..099c81d6 100644 --- a/drivers/gpu/nvgpu/lpwr/lpwr.c +++ b/drivers/gpu/nvgpu/lpwr/lpwr.c @@ -337,7 +337,6 @@ u32 nvgpu_lpwr_is_rppg_supported(struct gk20a *g, u32 pstate_num) int nvgpu_lpwr_enable_pg(struct gk20a *g, bool pstate_lock) { struct pmu_gk20a *pmu = &g->pmu; - struct gk20a_platform *platform = dev_get_drvdata(g->dev); u32 status = 0; u32 is_mscg_supported = 0; u32 is_rppg_supported = 0; @@ -364,7 +363,7 @@ int nvgpu_lpwr_enable_pg(struct gk20a *g, bool pstate_lock) is_rppg_supported = nvgpu_lpwr_is_rppg_supported(g, present_pstate); if (is_rppg_supported) { - if (g->support_pmu && platform->can_elpg) + if (g->support_pmu && g->can_elpg) status = gk20a_pmu_enable_elpg(g); } -- cgit v1.2.2