diff options
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux/ioctl_ctrl.c')
-rw-r--r-- | drivers/gpu/nvgpu/common/linux/ioctl_ctrl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/ioctl_ctrl.c b/drivers/gpu/nvgpu/common/linux/ioctl_ctrl.c index fa05deb9..6aa376ea 100644 --- a/drivers/gpu/nvgpu/common/linux/ioctl_ctrl.c +++ b/drivers/gpu/nvgpu/common/linux/ioctl_ctrl.c | |||
@@ -205,13 +205,13 @@ static int gk20a_ctrl_alloc_as( | |||
205 | 205 | ||
206 | snprintf(name, sizeof(name), "nvhost-%s-fd%d", g->name, fd); | 206 | snprintf(name, sizeof(name), "nvhost-%s-fd%d", g->name, fd); |
207 | 207 | ||
208 | file = anon_inode_getfile(name, g->as.cdev.ops, NULL, O_RDWR); | 208 | file = anon_inode_getfile(name, g->as_dev.cdev.ops, NULL, O_RDWR); |
209 | if (IS_ERR(file)) { | 209 | if (IS_ERR(file)) { |
210 | err = PTR_ERR(file); | 210 | err = PTR_ERR(file); |
211 | goto clean_up; | 211 | goto clean_up; |
212 | } | 212 | } |
213 | 213 | ||
214 | err = gk20a_as_alloc_share(&g->as, args->big_page_size, args->flags, | 214 | err = gk20a_as_alloc_share(g, args->big_page_size, args->flags, |
215 | &as_share); | 215 | &as_share); |
216 | if (err) | 216 | if (err) |
217 | goto clean_up_file; | 217 | goto clean_up_file; |