drm/radeon/kms: consolidate crtc count in rdev
authorAlex Deucher <alexdeucher@gmail.com>
Mon, 1 Feb 2010 21:02:25 +0000 (16:02 -0500)
committerDave Airlie <airlied@redhat.com>
Mon, 8 Feb 2010 23:32:25 +0000 (09:32 +1000)
commit18917b60bca094e7830e4046e336d024f73f1c90
treeb4014b7c07e2dc720c29b55077327c8067e4ccb5
parent44224c3f455886190b101dbb00befbaff5e98466
drm/radeon/kms: consolidate crtc count in rdev

Set the number of crtcs in rdev at crtc init and use it
whenever we need the crtc count rather than recalculating
it everytime.

Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/radeon/radeon.h
drivers/gpu/drm/radeon/radeon_display.c
drivers/gpu/drm/radeon/radeon_fb.c