patch-2.3.25 linux/arch/arm/mm/mm-tbox.c

Next file: linux/arch/arm/mm/proc-arm2,3.S
Previous file: linux/arch/arm/mm/mm-rpc.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.24/linux/arch/arm/mm/mm-tbox.c linux/arch/arm/mm/mm-tbox.c
@@ -18,11 +18,7 @@
 
 #include "map.h"
  
-struct mem_desc mem_desc[] __initdata = {
-	0, 0
-};
-
-unsigned int __initdata mem_desc_size = 0;
+#define SIZE(x) (sizeof(x) / sizeof(x[0]))
 
 /*    Logical    Physical
  * 0xffff1000	0x00100000	DMA registers
@@ -60,6 +56,4 @@
  	{ 0xffffe000, 0x00e00000, 0x00001000, DOMAIN_IO, 0, 1, 0, 0 }
 };
 
-#define SIZEOFMAP (sizeof(mapping) / sizeof(mapping[0]))
-
-unsigned int __initdata io_desc_size = SIZEOFMAP;
+unsigned int __initdata io_desc_size = SIZE(io_desc);

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