drm/radeon: fix card_posted check for newer asics
authorAlex Deucher <alexander.deucher@amd.com>
Wed, 22 May 2013 15:22:51 +0000 (11:22 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 29 May 2013 15:35:05 +0000 (11:35 -0400)
commit09fb8bd1a63b0f9f15e655c4fe8d047e5d2bf67a
tree0244eb117d9ee073c32ea4a50251e1dfe6c4225d
parent468ef1a58c9268ac9709350bf95eaf1c22a69f29
drm/radeon: fix card_posted check for newer asics

Newer asics have variable numbers of crtcs.  Use that
rather than the asic family to determine which crtcs
to check.  This avoids checking non-existent crtcs or
missing crtcs on certain asics.

Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/radeon/radeon_device.c