mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
gpu: nvgpu: Call init_cbc only when defined
Call init_cbc only when it contains a non-NULL pointer. Bug 1799537 Change-Id: Ic23f264e10daff30365bf3cf86ac9c155f50e497 Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: http://git-master/r/1208008 (cherry picked from commit ec69fa15c32f49d96939fd9a672faec45e078dfa) Reviewed-on: http://git-master/r/1217298 Reviewed-by: Automatic_Commit_Validation_User
This commit is contained in:
committed by
mobile promotions
parent
589179ad00
commit
2d35eee68f
@@ -4576,7 +4576,8 @@ static int gk20a_init_gr_setup_hw(struct gk20a *g)
|
||||
|
||||
gr_gk20a_load_zbc_table(g, gr);
|
||||
|
||||
g->ops.ltc.init_cbc(g, gr);
|
||||
if (g->ops.ltc.init_cbc)
|
||||
g->ops.ltc.init_cbc(g, gr);
|
||||
|
||||
/* load ctx init */
|
||||
for (i = 0; i < sw_ctx_load->count; i++)
|
||||
|
||||
Reference in New Issue
Block a user