diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2017-06-20 15:18:47 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-06-21 20:34:49 -0400 |
commit | 92c43deefca150854193c6720717d56b61989c23 (patch) | |
tree | 2dbfdcdb3a0809b80d4fc50e1d882326e54c7d17 /drivers/gpu/nvgpu/common/linux/ioctl_tsg.c | |
parent | 2ffbdc50d884215ba043e8afd3c3bcbefd1e66f8 (diff) |
gpu: nvgpu: Remove Linux devnode fields from gk20a
Move Linux devnode related fields to a new header file os_linux.h.
The class structure is defined in module.c, so move its declaration
to module.h.
JIRA NVGPU-38
Change-Id: I5d8920169064f4289ff61004f7f81543a9aba221
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/1505927
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
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 | } |