* Clean up CMC PU2 flash driver
* Update MAINTAINERS file
* Fix bug in MPC823 LCD driver
diff --git a/common/lcd.c b/common/lcd.c
index 85b44ca..d3ecd92 100644
--- a/common/lcd.c
+++ b/common/lcd.c
@@ -620,6 +620,8 @@
cmap = (ushort *)fbi->palette;
#elif defined(CONFIG_MPC823)
cmap = (ushort *)&(cp->lcd_cmap[255*sizeof(ushort)]);
+#else
+# error "Don't know location of color map"
#endif
/* Set color map */
@@ -631,9 +633,14 @@
( (cte.blue) & 0x001f) ;
#ifdef CFG_INVERT_COLORS
- *cmap++ = 0xffff - colreg;
+ *cmap = 0xffff - colreg;
#else
- *cmap++ = colreg;
+ *cmap = colreg;
+#endif
+#if defined(CONFIG_PXA250)
+ cmap++;
+#elif defined(CONFIG_MPC823)
+ cmap--;
#endif
}
}