mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
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
This commit is contained in:
parent
676bc2e1e4
commit
5317670692
1 changed files with 1 additions and 1 deletions
|
@ -452,7 +452,7 @@ static void atombios_crtc_program_ss(struct radeon_device *rdev,
|
||||||
union atom_enable_ss args;
|
union atom_enable_ss args;
|
||||||
|
|
||||||
if (!enable) {
|
if (!enable) {
|
||||||
for (i = 0; i < 6; i++) {
|
for (i = 0; i < rdev->num_crtc; i++) {
|
||||||
if (rdev->mode_info.crtcs[i] &&
|
if (rdev->mode_info.crtcs[i] &&
|
||||||
rdev->mode_info.crtcs[i]->enabled &&
|
rdev->mode_info.crtcs[i]->enabled &&
|
||||||
i != crtc_id &&
|
i != crtc_id &&
|
||||||
|
|
Loading…
Reference in a new issue