drm/radeon/hdmi: make sure we have an afmt block assigned
authorAlex Deucher <alexander.deucher@amd.com>
Mon, 8 Jul 2013 22:16:56 +0000 (18:16 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Sun, 14 Jul 2013 14:10:53 +0000 (10:10 -0400)
commitc2b4cacfe9816c1fe378c785ce8a678cf0635ec6
tree5231af1e1499a7b201b6a0526ffc1893edf01609
parent774d8e34e46506222bb5e2888e3ef42b2775715f
drm/radeon/hdmi: make sure we have an afmt block assigned

Prevents a segfault if an afmt block is not assigned to the
encoder such as in the LVDS or eDP case.

Fixes:
https://bugs.freedesktop.org/show_bug.cgi?id=66714

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/radeon/evergreen_hdmi.c
drivers/gpu/drm/radeon/r600_hdmi.c