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/radeon_cp.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/radeon_cp.c')
-rw-r--r-- | drivers/char/drm/radeon_cp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/drm/radeon_cp.c b/drivers/char/drm/radeon_cp.c index 68338389d836..aac5db3a0eb0 100644 --- a/drivers/char/drm/radeon_cp.c +++ b/drivers/char/drm/radeon_cp.c | |||
@@ -1501,13 +1501,13 @@ static int radeon_do_init_cp(drm_device_t * dev, drm_radeon_init_t * init) | |||
1501 | RADEON_ROUND_MODE_TRUNC | | 1501 | RADEON_ROUND_MODE_TRUNC | |
1502 | RADEON_ROUND_PREC_8TH_PIX); | 1502 | RADEON_ROUND_PREC_8TH_PIX); |
1503 | 1503 | ||
1504 | DRM_GETSAREA(); | ||
1505 | 1504 | ||
1506 | dev_priv->ring_offset = init->ring_offset; | 1505 | dev_priv->ring_offset = init->ring_offset; |
1507 | dev_priv->ring_rptr_offset = init->ring_rptr_offset; | 1506 | dev_priv->ring_rptr_offset = init->ring_rptr_offset; |
1508 | dev_priv->buffers_offset = init->buffers_offset; | 1507 | dev_priv->buffers_offset = init->buffers_offset; |
1509 | dev_priv->gart_textures_offset = init->gart_textures_offset; | 1508 | dev_priv->gart_textures_offset = init->gart_textures_offset; |
1510 | 1509 | ||
1510 | dev_priv->sarea = drm_getsarea(dev); | ||
1511 | if (!dev_priv->sarea) { | 1511 | if (!dev_priv->sarea) { |
1512 | DRM_ERROR("could not find sarea!\n"); | 1512 | DRM_ERROR("could not find sarea!\n"); |
1513 | radeon_do_cleanup_cp(dev); | 1513 | radeon_do_cleanup_cp(dev); |