Skip to content

Commit

Permalink
drm/radeon/ss: use num_crtc rather than hardcoded 6
Browse files Browse the repository at this point in the history
When checking if a pll is in use.

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
  • Loading branch information
Alex Deucher committed Aug 21, 2012
1 parent 676bc2e commit 5317670
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/radeon/atombios_crtc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 &&
Expand Down

0 comments on commit 5317670

Please sign in to comment.