diff options
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux/ioctl_tsg.c')
-rw-r--r-- | drivers/gpu/nvgpu/common/linux/ioctl_tsg.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/ioctl_tsg.c b/drivers/gpu/nvgpu/common/linux/ioctl_tsg.c index 9b722e9e..46bc5f59 100644 --- a/drivers/gpu/nvgpu/common/linux/ioctl_tsg.c +++ b/drivers/gpu/nvgpu/common/linux/ioctl_tsg.c | |||
@@ -29,6 +29,7 @@ | |||
29 | #include "gk20a/tsg_gk20a.h" | 29 | #include "gk20a/tsg_gk20a.h" |
30 | #include "ioctl_tsg.h" | 30 | #include "ioctl_tsg.h" |
31 | #include "ioctl_channel.h" | 31 | #include "ioctl_channel.h" |
32 | #include "os_linux.h" | ||
32 | 33 | ||
33 | struct tsg_private { | 34 | struct tsg_private { |
34 | struct gk20a *g; | 35 | struct gk20a *g; |
@@ -240,13 +241,13 @@ free_ref: | |||
240 | 241 | ||
241 | int nvgpu_ioctl_tsg_dev_open(struct inode *inode, struct file *filp) | 242 | int nvgpu_ioctl_tsg_dev_open(struct inode *inode, struct file *filp) |
242 | { | 243 | { |
243 | struct gk20a *g; | 244 | struct nvgpu_os_linux *l; |
244 | int ret; | 245 | int ret; |
245 | 246 | ||
246 | g = container_of(inode->i_cdev, | 247 | l = container_of(inode->i_cdev, |
247 | struct gk20a, tsg.cdev); | 248 | struct nvgpu_os_linux, tsg.cdev); |
248 | gk20a_dbg_fn(""); | 249 | gk20a_dbg_fn(""); |
249 | ret = nvgpu_ioctl_tsg_open(g, filp); | 250 | ret = nvgpu_ioctl_tsg_open(&l->g, filp); |
250 | gk20a_dbg_fn("done"); | 251 | gk20a_dbg_fn("done"); |
251 | return ret; | 252 | return ret; |
252 | } | 253 | } |