diff options
author | Joe Perches <joe@perches.com> | 2010-09-04 21:52:42 -0400 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2010-09-23 07:35:26 -0400 |
commit | 40b3be3fcaf8e0d8f7d8cee266dc4af3251d814b (patch) | |
tree | d19f7e64d7e1803d3c22f03c480cad3888861456 /drivers | |
parent | 99a51792dbb7e6e39b2a4ebcfe202f1dcc7354c4 (diff) |
drivers/gpu/drm: Remove unnecessary casts of private_data
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/drm/radeon/radeon_ttm.c | 2 | ||||
-rw-r--r-- | drivers/gpu/drm/vmwgfx/vmwgfx_fifo.c | 2 | ||||
-rw-r--r-- | drivers/gpu/drm/vmwgfx/vmwgfx_ttm_glue.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_ttm.c b/drivers/gpu/drm/radeon/radeon_ttm.c index 84c53e41a88f..a823d8fe54c2 100644 --- a/drivers/gpu/drm/radeon/radeon_ttm.c +++ b/drivers/gpu/drm/radeon/radeon_ttm.c | |||
@@ -631,7 +631,7 @@ int radeon_mmap(struct file *filp, struct vm_area_struct *vma) | |||
631 | return drm_mmap(filp, vma); | 631 | return drm_mmap(filp, vma); |
632 | } | 632 | } |
633 | 633 | ||
634 | file_priv = (struct drm_file *)filp->private_data; | 634 | file_priv = filp->private_data; |
635 | rdev = file_priv->minor->dev->dev_private; | 635 | rdev = file_priv->minor->dev->dev_private; |
636 | if (rdev == NULL) { | 636 | if (rdev == NULL) { |
637 | return -EINVAL; | 637 | return -EINVAL; |
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_fifo.c b/drivers/gpu/drm/vmwgfx/vmwgfx_fifo.c index e6a1eb7ea954..dc043c3d5324 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_fifo.c +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_fifo.c | |||
@@ -542,7 +542,7 @@ int vmw_fifo_mmap(struct file *filp, struct vm_area_struct *vma) | |||
542 | struct drm_file *file_priv; | 542 | struct drm_file *file_priv; |
543 | struct vmw_private *dev_priv; | 543 | struct vmw_private *dev_priv; |
544 | 544 | ||
545 | file_priv = (struct drm_file *)filp->private_data; | 545 | file_priv = filp->private_data; |
546 | dev_priv = vmw_priv(file_priv->minor->dev); | 546 | dev_priv = vmw_priv(file_priv->minor->dev); |
547 | 547 | ||
548 | if (vma->vm_pgoff != (dev_priv->mmio_start >> PAGE_SHIFT) || | 548 | if (vma->vm_pgoff != (dev_priv->mmio_start >> PAGE_SHIFT) || |
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_ttm_glue.c b/drivers/gpu/drm/vmwgfx/vmwgfx_ttm_glue.c index 83123287c60c..1e8eedd901e0 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_ttm_glue.c +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_ttm_glue.c | |||
@@ -39,7 +39,7 @@ int vmw_mmap(struct file *filp, struct vm_area_struct *vma) | |||
39 | return drm_mmap(filp, vma); | 39 | return drm_mmap(filp, vma); |
40 | } | 40 | } |
41 | 41 | ||
42 | file_priv = (struct drm_file *)filp->private_data; | 42 | file_priv = filp->private_data; |
43 | dev_priv = vmw_priv(file_priv->minor->dev); | 43 | dev_priv = vmw_priv(file_priv->minor->dev); |
44 | return ttm_bo_mmap(filp, vma, &dev_priv->bdev); | 44 | return ttm_bo_mmap(filp, vma, &dev_priv->bdev); |
45 | } | 45 | } |