patch-2.4.0-test11 linux/drivers/video/tgafb.c

Next file: linux/drivers/video/vfb.c
Previous file: linux/drivers/video/sisfb.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.0-test10/linux/drivers/video/tgafb.c linux/drivers/video/tgafb.c
@@ -66,8 +66,6 @@
 
 static int currcon = 0;
 
-#define arraysize(x)	(sizeof(x)/sizeof(*(x)))
-
 static struct { u_char red, green, blue, pad; } palette[256];
 #ifdef FBCON_HAS_CFB32
 static u32 fbcon_cfb32_cmap[16];
@@ -259,7 +257,7 @@
     }}
 };
 
-#define NUM_TOTAL_MODES    arraysize(tgafb_predefined)
+#define NUM_TOTAL_MODES    ARRAY_SIZE(tgafb_predefined)
 
 
     /*

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)