drm/i915: BUG() on unexpected HDMI register
authorPaulo Zanoni <paulo.r.zanoni@intel.com>
Mon, 24 Sep 2012 13:32:54 +0000 (10:32 -0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 24 Sep 2012 14:24:20 +0000 (16:24 +0200)
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 <paulo.r.zanoni@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_hdmi.c

index 229897ff75da647ad40260edc23bfdab180d3319..f9fb47cd1779922a3bd5d39d73e0be73e575e042 100644 (file)
@@ -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;
        }