diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gk20a.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gk20a.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.c b/drivers/gpu/nvgpu/gk20a/gk20a.c index a282110a..f71a51fd 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/gk20a.c | |||
@@ -124,7 +124,6 @@ int gk20a_prepare_poweroff(struct gk20a *g) | |||
124 | 124 | ||
125 | int gk20a_finalize_poweron(struct gk20a *g) | 125 | int gk20a_finalize_poweron(struct gk20a *g) |
126 | { | 126 | { |
127 | struct gk20a_platform *platform = gk20a_get_platform(dev_from_gk20a(g)); | ||
128 | int err; | 127 | int err; |
129 | #if defined(CONFIG_TEGRA_GK20A_NVHOST) && defined(CONFIG_TEGRA_19x_GPU) | 128 | #if defined(CONFIG_TEGRA_GK20A_NVHOST) && defined(CONFIG_TEGRA_19x_GPU) |
130 | u32 nr_pages; | 129 | u32 nr_pages; |
@@ -312,7 +311,7 @@ int gk20a_finalize_poweron(struct gk20a *g) | |||
312 | if (g->ops.xve.available_speeds) { | 311 | if (g->ops.xve.available_speeds) { |
313 | u32 speed; | 312 | u32 speed; |
314 | 313 | ||
315 | if (platform->disable_aspm && g->ops.xve.disable_aspm) | 314 | if (!nvgpu_is_enabled(g, NVGPU_SUPPORT_ASPM) && g->ops.xve.disable_aspm) |
316 | g->ops.xve.disable_aspm(g); | 315 | g->ops.xve.disable_aspm(g); |
317 | 316 | ||
318 | g->ops.xve.available_speeds(g, &speed); | 317 | g->ops.xve.available_speeds(g, &speed); |