From 56df8c58088b5c8b4a09ce6f5e195614251bf8d0 Mon Sep 17 00:00:00 2001 From: Deepak Nibade Date: Thu, 23 Mar 2017 15:32:14 +0530 Subject: gpu: nvgpu: use new List APIs to free channels Use new APIs from to access free channel list Define channel_gk20a_from_free_chs() to convert a list node to struct channel_gk20a Jira NVGPU-13 Change-Id: Idaf58f04be1c7fc553bea7c8de45951bf82bb340 Signed-off-by: Deepak Nibade Reviewed-on: http://git-master/r/1303025 Reviewed-by: svccoveritychecker GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom --- drivers/gpu/nvgpu/vgpu/fifo_vgpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drivers/gpu/nvgpu/vgpu') diff --git a/drivers/gpu/nvgpu/vgpu/fifo_vgpu.c b/drivers/gpu/nvgpu/vgpu/fifo_vgpu.c index 497f8c91..cfe9322e 100644 --- a/drivers/gpu/nvgpu/vgpu/fifo_vgpu.c +++ b/drivers/gpu/nvgpu/vgpu/fifo_vgpu.c @@ -296,7 +296,7 @@ static int vgpu_init_fifo_setup_sw(struct gk20a *g) init_runlist(g, f); - INIT_LIST_HEAD(&f->free_chs); + nvgpu_init_list_node(&f->free_chs); nvgpu_mutex_init(&f->free_chs_mutex); for (chid = 0; chid < f->num_channels; chid++) { -- cgit v1.2.2