diff options
author | Dave Airlie <airlied@linux.ie> | 2007-05-25 15:04:51 -0400 |
---|---|---|
committer | Dave Airlie <airlied@linux.ie> | 2007-07-10 21:58:02 -0400 |
commit | da509d7a02cb54938776439edc81f057e39f81e0 (patch) | |
tree | 9610b5c9040393041807014ed20c4497459550b8 /drivers/char/drm/mga_dma.c | |
parent | bd1b331fae2813d9f03ceee649296f02edc0b893 (diff) |
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.c | 3 |
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) | |||
823 | dev_priv->texture_offset = init->texture_offset[0]; | 823 | dev_priv->texture_offset = init->texture_offset[0]; |
824 | dev_priv->texture_size = init->texture_size[0]; | 824 | dev_priv->texture_size = init->texture_size[0]; |
825 | 825 | ||
826 | DRM_GETSAREA(); | 826 | dev_priv->sarea = drm_getsarea(dev); |
827 | |||
828 | if (!dev_priv->sarea) { | 827 | if (!dev_priv->sarea) { |
829 | DRM_ERROR("failed to find sarea!\n"); | 828 | DRM_ERROR("failed to find sarea!\n"); |
830 | return DRM_ERR(EINVAL); | 829 | return DRM_ERR(EINVAL); |