summaryrefslogtreecommitdiffstats
path: root/drivers/char/drm/mga_dma.c
diff options
context:
space:
mode:
authorDave Airlie <airlied@linux.ie>2007-05-26 05:04:51 +1000
committerDave Airlie <airlied@linux.ie>2007-07-11 11:58:02 +1000
commitda509d7a02cb54938776439edc81f057e39f81e0 (patch)
tree9610b5c9040393041807014ed20c4497459550b8 /drivers/char/drm/mga_dma.c
parentbd1b331fae2813d9f03ceee649296f02edc0b893 (diff)
downloadtalos-op-linux-da509d7a02cb54938776439edc81f057e39f81e0.tar.gz
talos-op-linux-da509d7a02cb54938776439edc81f057e39f81e0.zip
drm: remove DRM_GETSAREA and replace with drm_getsarea function
Signed-off-by: Dave Airlie <airlied@linux.ie>
Diffstat (limited to 'drivers/char/drm/mga_dma.c')
-rw-r--r--drivers/char/drm/mga_dma.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/char/drm/mga_dma.c b/drivers/char/drm/mga_dma.c
index 5781a8d934f8..769fee8cc309 100644
--- a/drivers/char/drm/mga_dma.c
+++ b/drivers/char/drm/mga_dma.c
@@ -823,8 +823,7 @@ static int mga_do_init_dma(drm_device_t * dev, drm_mga_init_t * init)
dev_priv->texture_offset = init->texture_offset[0];
dev_priv->texture_size = init->texture_size[0];
- DRM_GETSAREA();
-
+ dev_priv->sarea = drm_getsarea(dev);
if (!dev_priv->sarea) {
DRM_ERROR("failed to find sarea!\n");
return DRM_ERR(EINVAL);
OpenPOWER on IntegriCloud