patch-2_6_7-vs1_9_1_12
[linux-2.6.git] / arch / arm / mach-clps711x / fortunet.c
index 8646992..268e42b 100644 (file)
 extern void clps711x_map_io(void);
 extern void clps711x_init_irq(void);
 
-struct meminfo memmap = { 1, 0xC1000000, {{0xC0000000,0x01000000,0}}};
+struct meminfo memmap = {
+       .nr_banks       = 1,
+       .bank           = {
+               {
+                       .start  = 0xC0000000,
+                       .size   = 0x01000000,
+                       .node   = 0
+               },
+       },
+};
 
 typedef struct tag_IMAGE_PARAMS
 {
@@ -53,9 +62,8 @@ static void __init
 fortunet_fixup(struct machine_desc *desc, struct tag *tags,
                 char **cmdline, struct meminfo *mi)
 {
-       IMAGE_PARAMS *ip;
-       ip = (IMAGE_PARAMS *)__phys_to_virt(IMAGE_PARAMS_PHYS);
-       *cmdline = (char *)__phys_to_virt(ip->command_line);
+       IMAGE_PARAMS *ip = phys_to_virt(IMAGE_PARAMS_PHYS);
+       *cmdline = phys_to_virt(ip->command_line);
 #ifdef CONFIG_BLK_DEV_INITRD
        if(ip->ramdisk_ok)
        {
@@ -64,7 +72,6 @@ fortunet_fixup(struct machine_desc *desc, struct tag *tags,
        }
 #endif
        memmap.bank[0].size = ip->ram_size;
-       memmap.end = ip->ram_size+0xC0000000;
        *mi = memmap;
 }