From: Paulo Zanoni Date: Mon, 24 Sep 2012 13:32:54 +0000 (-0300) Subject: drm/i915: BUG() on unexpected HDMI register X-Git-Tag: firefly_0821_release~3680^2~1722^2~8^2~41 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=57df2ae9df6e335a98969cac5aafb09c4de10bb2;p=firefly-linux-kernel-4.4.55.git drm/i915: BUG() on unexpected HDMI register This should never happen, but the silent "return" makes me wonder every time I try to debug InfoFrame bugs, so promote this to BUG() to make sure people will complain if we ever break this. Signed-off-by: Paulo Zanoni Signed-off-by: Daniel Vetter --- diff --git a/drivers/gpu/drm/i915/intel_hdmi.c b/drivers/gpu/drm/i915/intel_hdmi.c index 229897ff75da..f9fb47cd1779 100644 --- a/drivers/gpu/drm/i915/intel_hdmi.c +++ b/drivers/gpu/drm/i915/intel_hdmi.c @@ -377,6 +377,7 @@ static void g4x_set_infoframes(struct drm_encoder *encoder, port = VIDEO_DIP_PORT_C; break; default: + BUG(); return; } @@ -435,6 +436,7 @@ static void ibx_set_infoframes(struct drm_encoder *encoder, port = VIDEO_DIP_PORT_D; break; default: + BUG(); return; }