radeon_hd: Fix superfluous DPMS hook calls

* The DPMS hook would be called on all
  possible displays causing lots of link
  training on incomplete connector structures
  that may be not attached / connected.
This commit is contained in:
Alexander von Gluck IV 2014-02-03 02:53:04 +00:00
parent d229280a80
commit 4d449fccfe
1 changed files with 2 additions and 0 deletions

View File

@ -168,6 +168,8 @@ radeon_dpms_set_hook(int mode)
// As the accelerant hook doesn't pass crtc id
for (uint8 id = 0; id < MAX_DISPLAY; id++) {
if (gDisplay[id]->attached == false)
continue;
radeon_dpms_set(id, mode);
}
}