diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2017-03-23 15:49:58 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-04-02 11:28:22 -0400 |
commit | 1e355ca52e2b3ac5f4e433e1bb115f6fd8499954 (patch) | |
tree | ec1d0a9fe758c0fbf5f5c877b8d40bca9d5d5002 /drivers/gpu/nvgpu/common/linux/ioctl_ctrl.c | |
parent | 660c9a95104b37c947e0c2f6aeda4c92698b40f4 (diff) |
gpu: nvgpu: Split as code to as IOCTL and common
Split as_gk20a.c into two parts:
common/linux/ioctl_as.c deals with as related devnodes and ioctls.
This file contains all the Linux specific parts of as_gk20a.c.
common/as.c deals with general as_gk20a maintenance and is Linux
independent.
JIRA NVGPU-16
Change-Id: I2d8541e0bd6ce159dc6e4de8e819dfcff0fa8f80
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/1330803
Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com>
GVS: Gerrit_Virtual_Submit
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; |