diff options
author | Alex Deucher <alexander.deucher@amd.com> | 2012-08-21 18:52:56 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-10-02 10:30:22 -0700 |
commit | 53c6c871480eb31207906a2c7e7e3a859339a8a3 (patch) | |
tree | 4be1f4f83753c18f2548e9a428a16e12a1a4700a | |
parent | 8ff63613670a03eaa3524f4a55742c17ed105bc5 (diff) |
drm/radeon/ss: use num_crtc rather than hardcoded 6
commit 5317670692f61675394db2eb6713484b67383750 upstream.
When checking if a pll is in use.
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/gpu/drm/radeon/atombios_crtc.c | 2 |
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 064742cf113..d86f948b388 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 && |