summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gpu/nvgpu/gk20a/gk20a.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.c b/drivers/gpu/nvgpu/gk20a/gk20a.c
index bbcf60e3..d5f12f2b 100644
--- a/drivers/gpu/nvgpu/gk20a/gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/gk20a.c
@@ -2031,7 +2031,8 @@ int gk20a_init_gpu_characteristics(struct gk20a *g)
2031 2031
2032 gpu->map_buffer_batch_limit = 256; 2032 gpu->map_buffer_batch_limit = 256;
2033 2033
2034 gpu->max_freq = platform->clk_round_rate(g->dev, UINT_MAX); 2034 if (platform->clk_round_rate)
2035 gpu->max_freq = platform->clk_round_rate(g->dev, UINT_MAX);
2035 2036
2036 return 0; 2037 return 0;
2037} 2038}