drm/radeon/kms: use active device to pick connector for encoder
authorDave Airlie <airlied@linux.ie>
Fri, 29 Jan 2010 05:55:30 +0000 (15:55 +1000)
committerDave Airlie <airlied@redhat.com>
Mon, 1 Feb 2010 00:12:26 +0000 (10:12 +1000)
commit43c33ed87d0f1b900a6a3014db556ecc7f4a989b
treeb8280b52b5965111e6673ab4bc699cefa3e588d3
parent97b94ccb9aa1b82ed7a9a045d0ae5b32c99b84a0
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>
drivers/gpu/drm/radeon/radeon_encoders.c