patch-2.1.107 linux/drivers/video/fbcon-cfb24.c

Next file: linux/drivers/video/fbcon-cfb32.c
Previous file: linux/drivers/video/fbcon-cfb2.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.106/linux/drivers/video/fbcon-cfb24.c linux/drivers/video/fbcon-cfb24.c
@@ -108,7 +108,9 @@
     *dest++ = (d2<<16) | (d3>>8);
     *dest++ = (d3<<24) | d4;
 #elif defined(__LITTLE_ENDIAN)
-#error Please add support for little endian byteorder
+    *dest++ = (d1<<8) | (d2>>16);
+    *dest++ = (d2<<16) | (d3>>8);
+    *dest++ = (d3<<24) | d4;
 #else
 #error FIXME: No endianness??
 #endif
@@ -202,7 +204,7 @@
 
 struct display_switch fbcon_cfb24 = {
     fbcon_cfb24_setup, fbcon_cfb24_bmove, fbcon_cfb24_clear, fbcon_cfb24_putc,
-    fbcon_cfb24_putcs, fbcon_cfb24_revc
+    fbcon_cfb24_putcs, fbcon_cfb24_revc, NULL
 };
 
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov