diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gp10b/gr_gp10b.c')
-rw-r--r-- | drivers/gpu/nvgpu/gp10b/gr_gp10b.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/gpu/nvgpu/gp10b/gr_gp10b.c b/drivers/gpu/nvgpu/gp10b/gr_gp10b.c index f70a5a00..a3655146 100644 --- a/drivers/gpu/nvgpu/gp10b/gr_gp10b.c +++ b/drivers/gpu/nvgpu/gp10b/gr_gp10b.c | |||
@@ -1961,8 +1961,8 @@ static int gr_gp10b_get_cilp_preempt_pending_chid(struct gk20a *g, int *__chid) | |||
1961 | 1961 | ||
1962 | chid = g->gr.cilp_preempt_pending_chid; | 1962 | chid = g->gr.cilp_preempt_pending_chid; |
1963 | 1963 | ||
1964 | ch = gk20a_channel_get(gk20a_fifo_channel_from_chid(g, chid)); | 1964 | ch = gk20a_channel_from_id(g, chid); |
1965 | if (!ch) { | 1965 | if (ch == NULL) { |
1966 | return ret; | 1966 | return ret; |
1967 | } | 1967 | } |
1968 | 1968 | ||
@@ -2014,9 +2014,8 @@ int gr_gp10b_handle_fecs_error(struct gk20a *g, | |||
2014 | goto clean_up; | 2014 | goto clean_up; |
2015 | } | 2015 | } |
2016 | 2016 | ||
2017 | ch = gk20a_channel_get( | 2017 | ch = gk20a_channel_from_id(g, chid); |
2018 | gk20a_fifo_channel_from_chid(g, chid)); | 2018 | if (ch == NULL) { |
2019 | if (!ch) { | ||
2020 | goto clean_up; | 2019 | goto clean_up; |
2021 | } | 2020 | } |
2022 | 2021 | ||