Browse Source

OMAP: DSS2: Fix: Read correct bit in dispc_enable_alpha_blending()

Read correct DISPC_CONFIG bit when the channel is DIGIT, remove extra line
at the end of the function.

Signed-off-by: Archit Taneja <archit@ti.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@nokia.com>
Archit Taneja 14 years ago
parent
commit
712247a681
1 changed files with 1 additions and 2 deletions
  1. 1 2
      drivers/video/omap2/dss/dispc.c

+ 1 - 2
drivers/video/omap2/dss/dispc.c

@@ -2003,13 +2003,12 @@ bool dispc_alpha_blending_enabled(enum omap_channel ch)
 	if (ch == OMAP_DSS_CHANNEL_LCD)
 		enabled = REG_GET(DISPC_CONFIG, 18, 18);
 	else if (ch == OMAP_DSS_CHANNEL_DIGIT)
-		enabled = REG_GET(DISPC_CONFIG, 18, 18);
+		enabled = REG_GET(DISPC_CONFIG, 19, 19);
 	else
 		BUG();
 	enable_clocks(0);
 
 	return enabled;
-
 }