drm/radeon/kms/atom: set sane defaults in atombios_get_encoder_mode()
authorAlex Deucher <alexdeucher@gmail.com>
Wed, 17 Nov 2010 07:49:40 +0000 (02:49 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 9 Dec 2010 21:32:54 +0000 (13:32 -0800)
commit20861cd4d5c65f2c258e8b347435d1c17aa52d58
treec9e514d6827c379cbbf8d3720c756697d096a731
parent89dc7fe16538f3da6be9e48edb845a590e2020de
drm/radeon/kms/atom: set sane defaults in atombios_get_encoder_mode()

commit c7a71fc761551dc8be8543f14a90d08cda4e77f9 upstream.

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>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/gpu/drm/radeon/radeon_encoders.c