diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2017-05-12 13:32:11 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-05-17 13:24:25 -0400 |
commit | 2c822a63885ec79ac2d860e13438c6154e23e5d0 (patch) | |
tree | eab486eb38d2d74b211ad94e4c1d28368922a23c /drivers/gpu/nvgpu/lpwr/lpwr.c | |
parent | 39a9e251da0fb4da8512593d3ce4f6eba47d5e0c (diff) |
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 <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/1480955
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/lpwr/lpwr.c')
-rw-r--r-- | drivers/gpu/nvgpu/lpwr/lpwr.c | 3 |
1 files changed, 1 insertions, 2 deletions
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) | |||
337 | int nvgpu_lpwr_enable_pg(struct gk20a *g, bool pstate_lock) | 337 | int nvgpu_lpwr_enable_pg(struct gk20a *g, bool pstate_lock) |
338 | { | 338 | { |
339 | struct pmu_gk20a *pmu = &g->pmu; | 339 | struct pmu_gk20a *pmu = &g->pmu; |
340 | struct gk20a_platform *platform = dev_get_drvdata(g->dev); | ||
341 | u32 status = 0; | 340 | u32 status = 0; |
342 | u32 is_mscg_supported = 0; | 341 | u32 is_mscg_supported = 0; |
343 | u32 is_rppg_supported = 0; | 342 | u32 is_rppg_supported = 0; |
@@ -364,7 +363,7 @@ int nvgpu_lpwr_enable_pg(struct gk20a *g, bool pstate_lock) | |||
364 | is_rppg_supported = nvgpu_lpwr_is_rppg_supported(g, | 363 | is_rppg_supported = nvgpu_lpwr_is_rppg_supported(g, |
365 | present_pstate); | 364 | present_pstate); |
366 | if (is_rppg_supported) { | 365 | if (is_rppg_supported) { |
367 | if (g->support_pmu && platform->can_elpg) | 366 | if (g->support_pmu && g->can_elpg) |
368 | status = gk20a_pmu_enable_elpg(g); | 367 | status = gk20a_pmu_enable_elpg(g); |
369 | } | 368 | } |
370 | 369 | ||