summaryrefslogtreecommitdiffstats
path: root/drivers/gpu
diff options
context:
space:
mode:
authorAlex Deucher <alexander.deucher@amd.com>2012-08-21 18:52:56 -0400
committerAlex Deucher <alexander.deucher@amd.com>2012-08-21 18:52:56 -0400
commit5317670692f61675394db2eb6713484b67383750 (patch)
treeccca85430cae14ab6313881177881af338117eba /drivers/gpu
parent676bc2e1e4f9072f7a640d5b7c99ffdf9709a6e7 (diff)
downloadblackbird-op-linux-5317670692f61675394db2eb6713484b67383750.tar.gz
blackbird-op-linux-5317670692f61675394db2eb6713484b67383750.zip
drm/radeon/ss: use num_crtc rather than hardcoded 6
When checking if a pll is in use. Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Cc: stable@vger.kernel.org
Diffstat (limited to 'drivers/gpu')
-rw-r--r--drivers/gpu/drm/radeon/atombios_crtc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/radeon/atombios_crtc.c b/drivers/gpu/drm/radeon/atombios_crtc.c
index cb18813c7df0..f4d4505fe831 100644
--- a/drivers/gpu/drm/radeon/atombios_crtc.c
+++ b/drivers/gpu/drm/radeon/atombios_crtc.c
@@ -452,7 +452,7 @@ static void atombios_crtc_program_ss(struct radeon_device *rdev,
union atom_enable_ss args;
if (!enable) {
- for (i = 0; i < 6; i++) {
+ for (i = 0; i < rdev->num_crtc; i++) {
if (rdev->mode_info.crtcs[i] &&
rdev->mode_info.crtcs[i]->enabled &&
i != crtc_id &&
OpenPOWER on IntegriCloud