drm/radeon/kms/atom: fix potential oops in spread spectrum code
authorAlex Deucher <alexdeucher@gmail.com>
Wed, 28 Oct 2009 04:51:20 +0000 (00:51 -0400)
committerDave Airlie <airlied@redhat.com>
Wed, 28 Oct 2009 05:30:03 +0000 (15:30 +1000)
Make sure we have an LVDS encoder before casting enc_priv.

[airlied: also fix two missing cpu_to_le16 casts we noticed on irc]

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