diff options
Diffstat (limited to 'drivers/gpu/nvgpu/vgpu/ltc_vgpu.c')
-rw-r--r-- | drivers/gpu/nvgpu/vgpu/ltc_vgpu.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/vgpu/ltc_vgpu.c b/drivers/gpu/nvgpu/vgpu/ltc_vgpu.c index 199e880b..76ee5ec9 100644 --- a/drivers/gpu/nvgpu/vgpu/ltc_vgpu.c +++ b/drivers/gpu/nvgpu/vgpu/ltc_vgpu.c | |||
@@ -56,8 +56,10 @@ static int vgpu_ltc_init_comptags(struct gk20a *g, struct gr_gk20a *gr) | |||
56 | if (max_comptag_lines < 2) | 56 | if (max_comptag_lines < 2) |
57 | return -ENXIO; | 57 | return -ENXIO; |
58 | 58 | ||
59 | __gk20a_allocator_init(&gr->comp_tags, NULL, "comptag", | 59 | err = gk20a_comptag_allocator_init(&gr->comp_tags, max_comptag_lines); |
60 | 1, max_comptag_lines - 1, 1, 10, 0); /* length*/ | 60 | if (err) |
61 | return err; | ||
62 | |||
61 | return 0; | 63 | return 0; |
62 | } | 64 | } |
63 | 65 | ||