diff options
Diffstat (limited to 'drivers/char/drm/sis_mm.c')
-rw-r--r-- | drivers/char/drm/sis_mm.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/char/drm/sis_mm.c b/drivers/char/drm/sis_mm.c index 244006a107b7..cefbc3086d84 100644 --- a/drivers/char/drm/sis_mm.c +++ b/drivers/char/drm/sis_mm.c | |||
@@ -123,7 +123,7 @@ static int sis_fb_init(DRM_IOCTL_ARGS) | |||
123 | return 0; | 123 | return 0; |
124 | } | 124 | } |
125 | 125 | ||
126 | static int sis_drm_alloc(struct drm_device *dev, struct drm_file * priv, | 126 | static int sis_drm_alloc(struct drm_device *dev, struct drm_file *file_priv, |
127 | unsigned long data, int pool) | 127 | unsigned long data, int pool) |
128 | { | 128 | { |
129 | drm_sis_private_t *dev_priv = dev->dev_private; | 129 | drm_sis_private_t *dev_priv = dev->dev_private; |
@@ -145,7 +145,7 @@ static int sis_drm_alloc(struct drm_device *dev, struct drm_file * priv, | |||
145 | 145 | ||
146 | mem.size = (mem.size + SIS_MM_ALIGN_MASK) >> SIS_MM_ALIGN_SHIFT; | 146 | mem.size = (mem.size + SIS_MM_ALIGN_MASK) >> SIS_MM_ALIGN_SHIFT; |
147 | item = drm_sman_alloc(&dev_priv->sman, pool, mem.size, 0, | 147 | item = drm_sman_alloc(&dev_priv->sman, pool, mem.size, 0, |
148 | (unsigned long)priv); | 148 | (unsigned long)file_priv); |
149 | 149 | ||
150 | mutex_unlock(&dev->struct_mutex); | 150 | mutex_unlock(&dev->struct_mutex); |
151 | if (item) { | 151 | if (item) { |
@@ -191,7 +191,7 @@ static int sis_drm_free(DRM_IOCTL_ARGS) | |||
191 | static int sis_fb_alloc(DRM_IOCTL_ARGS) | 191 | static int sis_fb_alloc(DRM_IOCTL_ARGS) |
192 | { | 192 | { |
193 | DRM_DEVICE; | 193 | DRM_DEVICE; |
194 | return sis_drm_alloc(dev, priv, data, VIDEO_TYPE); | 194 | return sis_drm_alloc(dev, file_priv, data, VIDEO_TYPE); |
195 | } | 195 | } |
196 | 196 | ||
197 | static int sis_ioctl_agp_init(DRM_IOCTL_ARGS) | 197 | static int sis_ioctl_agp_init(DRM_IOCTL_ARGS) |
@@ -226,7 +226,7 @@ static int sis_ioctl_agp_alloc(DRM_IOCTL_ARGS) | |||
226 | { | 226 | { |
227 | DRM_DEVICE; | 227 | DRM_DEVICE; |
228 | 228 | ||
229 | return sis_drm_alloc(dev, priv, data, AGP_TYPE); | 229 | return sis_drm_alloc(dev, file_priv, data, AGP_TYPE); |
230 | } | 230 | } |
231 | 231 | ||
232 | static drm_local_map_t *sis_reg_init(struct drm_device *dev) | 232 | static drm_local_map_t *sis_reg_init(struct drm_device *dev) |
@@ -314,13 +314,13 @@ void sis_lastclose(struct drm_device *dev) | |||
314 | mutex_unlock(&dev->struct_mutex); | 314 | mutex_unlock(&dev->struct_mutex); |
315 | } | 315 | } |
316 | 316 | ||
317 | void sis_reclaim_buffers_locked(struct drm_device * dev, struct file *filp) | 317 | void sis_reclaim_buffers_locked(struct drm_device * dev, |
318 | struct drm_file *file_priv) | ||
318 | { | 319 | { |
319 | drm_sis_private_t *dev_priv = dev->dev_private; | 320 | drm_sis_private_t *dev_priv = dev->dev_private; |
320 | struct drm_file *priv = filp->private_data; | ||
321 | 321 | ||
322 | mutex_lock(&dev->struct_mutex); | 322 | mutex_lock(&dev->struct_mutex); |
323 | if (drm_sman_owner_clean(&dev_priv->sman, (unsigned long)priv)) { | 323 | if (drm_sman_owner_clean(&dev_priv->sman, (unsigned long)file_priv)) { |
324 | mutex_unlock(&dev->struct_mutex); | 324 | mutex_unlock(&dev->struct_mutex); |
325 | return; | 325 | return; |
326 | } | 326 | } |
@@ -329,7 +329,7 @@ void sis_reclaim_buffers_locked(struct drm_device * dev, struct file *filp) | |||
329 | dev->driver->dma_quiescent(dev); | 329 | dev->driver->dma_quiescent(dev); |
330 | } | 330 | } |
331 | 331 | ||
332 | drm_sman_owner_cleanup(&dev_priv->sman, (unsigned long)priv); | 332 | drm_sman_owner_cleanup(&dev_priv->sman, (unsigned long)file_priv); |
333 | mutex_unlock(&dev->struct_mutex); | 333 | mutex_unlock(&dev->struct_mutex); |
334 | return; | 334 | return; |
335 | } | 335 | } |