drm/radeon: Fix VRAM size calculation for VRAM >= 4GB
[linux-2.6.git] / drivers / gpu / drm / radeon / radeon_ttm.c
index f493c64..49b55ed 100644 (file)
@@ -744,7 +744,7 @@ int radeon_ttm_init(struct radeon_device *rdev)
                return r;
        }
        DRM_INFO("radeon: %uM of VRAM memory ready\n",
-                (unsigned)rdev->mc.real_vram_size / (1024 * 1024));
+                (unsigned) (rdev->mc.real_vram_size / (1024 * 1024)));
        r = ttm_bo_init_mm(&rdev->mman.bdev, TTM_PL_TT,
                                rdev->mc.gtt_size >> PAGE_SHIFT);
        if (r) {