aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorDave Airlie <airlied@linux.ie>2010-01-29 00:55:30 -0500
committerDave Airlie <airlied@redhat.com>2010-01-31 19:12:26 -0500
commit43c33ed87d0f1b900a6a3014db556ecc7f4a989b (patch)
treeb8280b52b5965111e6673ab4bc699cefa3e588d3 /drivers
parent97b94ccb9aa1b82ed7a9a045d0ae5b32c99b84a0 (diff)
drm/radeon/kms: use active device to pick connector for encoder
On the W500 we have UNIPHY routed to both DVI and DP, this seems to always pick the DVI connector which means link training fails. Switch to using active device to pick the connector, this seems like it should be safe from a code review, and it fixes things a bit more here. Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gpu/drm/radeon/radeon_encoders.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_encoders.c b/drivers/gpu/drm/radeon/radeon_encoders.c
index 82eb551970b9..10746c9c8051 100644
--- a/drivers/gpu/drm/radeon/radeon_encoders.c
+++ b/drivers/gpu/drm/radeon/radeon_encoders.c
@@ -202,7 +202,7 @@ radeon_get_connector_for_encoder(struct drm_encoder *encoder)
202 202
203 list_for_each_entry(connector, &dev->mode_config.connector_list, head) { 203 list_for_each_entry(connector, &dev->mode_config.connector_list, head) {
204 radeon_connector = to_radeon_connector(connector); 204 radeon_connector = to_radeon_connector(connector);
205 if (radeon_encoder->devices & radeon_connector->devices) 205 if (radeon_encoder->active_device & radeon_connector->devices)
206 return connector; 206 return connector;
207 } 207 }
208 return NULL; 208 return NULL;