drm/radeon/kms/atom: set sane defaults in atombios_get_encoder_mode()
commitc7a71fc761551dc8be8543f14a90d08cda4e77f9
authorAlex Deucher <alexdeucher@gmail.com>
Wed, 17 Nov 2010 07:49:40 +0000 (17 02:49 -0500)
committerDave Airlie <airlied@redhat.com>
Thu, 18 Nov 2010 04:56:19 +0000 (18 14:56 +1000)
tree2df711f43dc1375ccf67698c2bfad10ae4be8349
parentba251bde9ab8bdce8fbd3f60dbb71b36cc4c9adf
drm/radeon/kms/atom: set sane defaults in atombios_get_encoder_mode()

If there was no connector mapped to the encoder, atombios_get_encoder_mode()
returned 0 which is the id for DP.  Return something sane instead based on
the encoder id.  This avoids hitting the DP paths on non-DP encoders.

Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
Cc: stable@kernel.org
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/radeon/radeon_encoders.c