mm: free_area_init: use maximal zone PFNs rather than zone sizes
[linux-2.6-microblaze.git] / arch / openrisc / mm / init.c
index 1f87b52..f94fe6d 100644 (file)
@@ -45,17 +45,14 @@ DEFINE_PER_CPU(struct mmu_gather, mmu_gathers);
 
 static void __init zone_sizes_init(void)
 {
-       unsigned long zones_size[MAX_NR_ZONES];
-
-       /* Clear the zone sizes */
-       memset(zones_size, 0, sizeof(zones_size));
+       unsigned long max_zone_pfn[MAX_NR_ZONES] = { 0 };
 
        /*
         * We use only ZONE_NORMAL
         */
-       zones_size[ZONE_NORMAL] = max_low_pfn;
+       max_zone_pfn[ZONE_NORMAL] = max_low_pfn;
 
-       free_area_init(zones_size);
+       free_area_init(max_zone_pfn);
 }
 
 extern const char _s_kernel_ro[], _e_kernel_ro[];