diff options
author | Alex Deucher <alexdeucher@gmail.com> | 2010-03-16 17:08:06 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2010-03-31 09:54:07 +1000 |
commit | 9e7b414edbf5e037c1462bbd8676465ed2ae0ac3 (patch) | |
tree | c843d452a884f3af803794dd4c85581ebd90e6df /drivers/gpu/drm/radeon/radeon_display.c | |
parent | 06abdb0ec6b91f634631404012c4d646389e9e0b (diff) |
drm/radeon/kms: init rdev->num_crtc at asic init
Replace hardcoded numbers with rdev->num_crtc.
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/radeon_display.c')
-rw-r--r-- | drivers/gpu/drm/radeon/radeon_display.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_display.c b/drivers/gpu/drm/radeon/radeon_display.c index ff5f09953c0..d65931d2e77 100644 --- a/drivers/gpu/drm/radeon/radeon_display.c +++ b/drivers/gpu/drm/radeon/radeon_display.c @@ -1003,15 +1003,6 @@ int radeon_modeset_init(struct radeon_device *rdev) radeon_combios_check_hardcoded_edid(rdev); } - if (rdev->flags & RADEON_SINGLE_CRTC) - rdev->num_crtc = 1; - else { - if (ASIC_IS_DCE4(rdev)) - rdev->num_crtc = 6; - else - rdev->num_crtc = 2; - } - /* allocate crtcs */ for (i = 0; i < rdev->num_crtc; i++) { radeon_crtc_init(rdev->ddev, i); |