diff options
-rw-r--r-- | drivers/video/omap2/dss/hdmi.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/video/omap2/dss/hdmi.h b/drivers/video/omap2/dss/hdmi.h index b0493768a5d7..855b6b0f250e 100644 --- a/drivers/video/omap2/dss/hdmi.h +++ b/drivers/video/omap2/dss/hdmi.h | |||
@@ -378,15 +378,15 @@ static inline u32 hdmi_read_reg(void __iomem *base_addr, const u16 idx) | |||
378 | FLD_GET(hdmi_read_reg(base, idx), start, end) | 378 | FLD_GET(hdmi_read_reg(base, idx), start, end) |
379 | 379 | ||
380 | static inline int hdmi_wait_for_bit_change(void __iomem *base_addr, | 380 | static inline int hdmi_wait_for_bit_change(void __iomem *base_addr, |
381 | const u16 idx, int b2, int b1, u32 val) | 381 | const u32 idx, int b2, int b1, u32 val) |
382 | { | 382 | { |
383 | u32 t = 0; | 383 | u32 t = 0, v; |
384 | while (val != REG_GET(base_addr, idx, b2, b1)) { | 384 | while (val != (v = REG_GET(base_addr, idx, b2, b1))) { |
385 | udelay(1); | ||
386 | if (t++ > 10000) | 385 | if (t++ > 10000) |
387 | return !val; | 386 | return v; |
387 | udelay(1); | ||
388 | } | 388 | } |
389 | return val; | 389 | return v; |
390 | } | 390 | } |
391 | 391 | ||
392 | /* HDMI wrapper funcs */ | 392 | /* HDMI wrapper funcs */ |