mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
gpu: nvgpu: check null when call clk_round_rate
Bug 1726406 Change-Id: Ia03b0a174e92b28c471164cefcde514e6db94bdf Signed-off-by: Richard Zhao <rizhao@nvidia.com> Reviewed-on: http://git-master/r/1002700 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Vladislav Buzov <vbuzov@nvidia.com>
This commit is contained in:
committed by
Vladislav Buzov
parent
0261d1fd94
commit
aa8f516354
@@ -2031,7 +2031,8 @@ int gk20a_init_gpu_characteristics(struct gk20a *g)
|
||||
|
||||
gpu->map_buffer_batch_limit = 256;
|
||||
|
||||
gpu->max_freq = platform->clk_round_rate(g->dev, UINT_MAX);
|
||||
if (platform->clk_round_rate)
|
||||
gpu->max_freq = platform->clk_round_rate(g->dev, UINT_MAX);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user