aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2009-07-09 02:01:42 -0400
committerDave Airlie <airlied@redhat.com>2009-07-15 03:13:14 -0400
commite7168cab5bbac0a0e5413fd55ba0e92555bf860d (patch)
treec4cae8b85c0f4f97208df7e7e287e6254403985c /drivers/gpu
parent2007d633d639c896396e4c4b53b38068f3831307 (diff)
drm/radeon/kms: fix vram vs aper size check.
Fix this to be correct like the DDX code, looks like a typo on transfer to the kernel. Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r--drivers/gpu/drm/radeon/radeon_device.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_device.c b/drivers/gpu/drm/radeon/radeon_device.c
index f97563db4e59..332911267ebe 100644
--- a/drivers/gpu/drm/radeon/radeon_device.c
+++ b/drivers/gpu/drm/radeon/radeon_device.c
@@ -552,7 +552,7 @@ int radeon_device_init(struct radeon_device *rdev,
552 * for RN50/M6/M7 - Novell bug 204882 ? 552 * for RN50/M6/M7 - Novell bug 204882 ?
553 */ 553 */
554 if (rdev->mc.vram_size < rdev->mc.aper_size) { 554 if (rdev->mc.vram_size < rdev->mc.aper_size) {
555 rdev->mc.aper_size = rdev->mc.vram_size; 555 rdev->mc.vram_size = rdev->mc.aper_size;
556 } 556 }
557 /* Add an MTRR for the VRAM */ 557 /* Add an MTRR for the VRAM */
558 rdev->mc.vram_mtrr = mtrr_add(rdev->mc.aper_base, rdev->mc.aper_size, 558 rdev->mc.vram_mtrr = mtrr_add(rdev->mc.aper_base, rdev->mc.aper_size,