diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/nvgpu/os/linux/platform_gp10b_tegra.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/os/linux/platform_gp10b_tegra.c b/drivers/gpu/nvgpu/os/linux/platform_gp10b_tegra.c index 00fd386e..cf18fd24 100644 --- a/drivers/gpu/nvgpu/os/linux/platform_gp10b_tegra.c +++ b/drivers/gpu/nvgpu/os/linux/platform_gp10b_tegra.c | |||
@@ -133,7 +133,7 @@ static void gp10b_tegra_scale_exit(struct device *dev) | |||
133 | struct gk20a_platform *platform = gk20a_get_platform(dev); | 133 | struct gk20a_platform *platform = gk20a_get_platform(dev); |
134 | struct gk20a_scale_profile *profile = platform->g->scale_profile; | 134 | struct gk20a_scale_profile *profile = platform->g->scale_profile; |
135 | 135 | ||
136 | if (profile) | 136 | if (profile && profile->private_data) |
137 | tegra_bwmgr_unregister( | 137 | tegra_bwmgr_unregister( |
138 | (struct tegra_bwmgr_client *)profile->private_data); | 138 | (struct tegra_bwmgr_client *)profile->private_data); |
139 | } | 139 | } |
@@ -300,7 +300,8 @@ void gp10b_tegra_postscale(struct device *pdev, | |||
300 | unsigned long emc_rate; | 300 | unsigned long emc_rate; |
301 | 301 | ||
302 | nvgpu_log_fn(g, " "); | 302 | nvgpu_log_fn(g, " "); |
303 | if (profile && !platform->is_railgated(pdev)) { | 303 | if (profile && profile->private_data && |
304 | !platform->is_railgated(pdev)) { | ||
304 | unsigned long emc_scale; | 305 | unsigned long emc_scale; |
305 | 306 | ||
306 | if (freq <= gp10b_freq_table[0]) | 307 | if (freq <= gp10b_freq_table[0]) |