summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/common/linux/ioctl_ctrl.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux/ioctl_ctrl.c')
-rw-r--r--drivers/gpu/nvgpu/common/linux/ioctl_ctrl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/ioctl_ctrl.c b/drivers/gpu/nvgpu/common/linux/ioctl_ctrl.c
index 5c5ac645..2c274f23 100644
--- a/drivers/gpu/nvgpu/common/linux/ioctl_ctrl.c
+++ b/drivers/gpu/nvgpu/common/linux/ioctl_ctrl.c
@@ -68,7 +68,7 @@ int gk20a_ctrl_dev_open(struct inode *inode, struct file *filp)
68 goto free_ref; 68 goto free_ref;
69 } 69 }
70 filp->private_data = priv; 70 filp->private_data = priv;
71 priv->dev = g->dev; 71 priv->dev = dev_from_gk20a(g);
72 /* 72 /*
73 * We dont close the arbiter fd's after driver teardown to support 73 * We dont close the arbiter fd's after driver teardown to support
74 * GPU_LOST events, so we store g here, instead of dereferencing the 74 * GPU_LOST events, so we store g here, instead of dereferencing the