diff options
author | Josef Sipek <jsipek@fsl.cs.sunysb.edu> | 2006-12-08 05:36:59 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.osdl.org> | 2006-12-08 11:28:44 -0500 |
commit | cc5ef55fd0d81f70b0afc86817aa1d305fd6aeaa (patch) | |
tree | 9efad23b8098207a5fa944476798591c270c5910 /drivers/char/drm/mga_ioc32.c | |
parent | d817be9ca8766b521f6195f57281284c5ab0ff4c (diff) |
[PATCH] struct path: convert drm
Signed-off-by: Josef Sipek <jsipek@fsl.cs.sunysb.edu>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/char/drm/mga_ioc32.c')
-rw-r--r-- | drivers/char/drm/mga_ioc32.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/char/drm/mga_ioc32.c b/drivers/char/drm/mga_ioc32.c index 54a18eb2fc0..30d00478dde 100644 --- a/drivers/char/drm/mga_ioc32.c +++ b/drivers/char/drm/mga_ioc32.c | |||
@@ -100,7 +100,7 @@ static int compat_mga_init(struct file *file, unsigned int cmd, | |||
100 | if (err) | 100 | if (err) |
101 | return -EFAULT; | 101 | return -EFAULT; |
102 | 102 | ||
103 | return drm_ioctl(file->f_dentry->d_inode, file, | 103 | return drm_ioctl(file->f_path.dentry->d_inode, file, |
104 | DRM_IOCTL_MGA_INIT, (unsigned long)init); | 104 | DRM_IOCTL_MGA_INIT, (unsigned long)init); |
105 | } | 105 | } |
106 | 106 | ||
@@ -125,7 +125,7 @@ static int compat_mga_getparam(struct file *file, unsigned int cmd, | |||
125 | &getparam->value)) | 125 | &getparam->value)) |
126 | return -EFAULT; | 126 | return -EFAULT; |
127 | 127 | ||
128 | return drm_ioctl(file->f_dentry->d_inode, file, | 128 | return drm_ioctl(file->f_path.dentry->d_inode, file, |
129 | DRM_IOCTL_MGA_GETPARAM, (unsigned long)getparam); | 129 | DRM_IOCTL_MGA_GETPARAM, (unsigned long)getparam); |
130 | } | 130 | } |
131 | 131 | ||
@@ -166,7 +166,7 @@ static int compat_mga_dma_bootstrap(struct file *file, unsigned int cmd, | |||
166 | || __put_user(dma_bootstrap32.agp_size, &dma_bootstrap->agp_size)) | 166 | || __put_user(dma_bootstrap32.agp_size, &dma_bootstrap->agp_size)) |
167 | return -EFAULT; | 167 | return -EFAULT; |
168 | 168 | ||
169 | err = drm_ioctl(file->f_dentry->d_inode, file, | 169 | err = drm_ioctl(file->f_path.dentry->d_inode, file, |
170 | DRM_IOCTL_MGA_DMA_BOOTSTRAP, | 170 | DRM_IOCTL_MGA_DMA_BOOTSTRAP, |
171 | (unsigned long)dma_bootstrap); | 171 | (unsigned long)dma_bootstrap); |
172 | if (err) | 172 | if (err) |
@@ -224,7 +224,7 @@ long mga_compat_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) | |||
224 | if (fn != NULL) | 224 | if (fn != NULL) |
225 | ret = (*fn) (filp, cmd, arg); | 225 | ret = (*fn) (filp, cmd, arg); |
226 | else | 226 | else |
227 | ret = drm_ioctl(filp->f_dentry->d_inode, filp, cmd, arg); | 227 | ret = drm_ioctl(filp->f_path.dentry->d_inode, filp, cmd, arg); |
228 | unlock_kernel(); | 228 | unlock_kernel(); |
229 | 229 | ||
230 | return ret; | 230 | return ret; |