diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/platform_gk20a_tegra.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/platform_gk20a_tegra.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/platform_gk20a_tegra.c b/drivers/gpu/nvgpu/gk20a/platform_gk20a_tegra.c index 313962a1..8609e3ae 100644 --- a/drivers/gpu/nvgpu/gk20a/platform_gk20a_tegra.c +++ b/drivers/gpu/nvgpu/gk20a/platform_gk20a_tegra.c | |||
@@ -472,10 +472,8 @@ static int gk20a_tegra_probe(struct platform_device *dev) | |||
472 | 472 | ||
473 | static int gk20a_tegra_late_probe(struct platform_device *dev) | 473 | static int gk20a_tegra_late_probe(struct platform_device *dev) |
474 | { | 474 | { |
475 | struct gk20a_platform *platform = gk20a_get_platform(dev); | ||
476 | |||
477 | /* Make gk20a power domain a subdomain of host1x */ | 475 | /* Make gk20a power domain a subdomain of host1x */ |
478 | nvhost_register_client_domain(&platform->g->pd); | 476 | nvhost_register_client_domain(dev_to_genpd(&dev->dev)); |
479 | 477 | ||
480 | /* Initialise tegra specific scaling quirks */ | 478 | /* Initialise tegra specific scaling quirks */ |
481 | gk20a_tegra_scale_init(dev); | 479 | gk20a_tegra_scale_init(dev); |
@@ -485,10 +483,8 @@ static int gk20a_tegra_late_probe(struct platform_device *dev) | |||
485 | 483 | ||
486 | static int gk20a_tegra_remove(struct platform_device *dev) | 484 | static int gk20a_tegra_remove(struct platform_device *dev) |
487 | { | 485 | { |
488 | struct gk20a_platform *platform = gk20a_get_platform(dev); | ||
489 | |||
490 | /* remove gk20a power subdomain from host1x */ | 486 | /* remove gk20a power subdomain from host1x */ |
491 | nvhost_unregister_client_domain(&platform->g->pd); | 487 | nvhost_unregister_client_domain(dev_to_genpd(&dev->dev)); |
492 | 488 | ||
493 | /* deinitialise tegra specific scaling quirks */ | 489 | /* deinitialise tegra specific scaling quirks */ |
494 | gk20a_tegra_scale_exit(dev); | 490 | gk20a_tegra_scale_exit(dev); |