diff options
Diffstat (limited to 'arch/microblaze/mm')
-rw-r--r-- | arch/microblaze/mm/init.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/arch/microblaze/mm/init.c b/arch/microblaze/mm/init.c index 840026c5bc56..c8437866d3b7 100644 --- a/arch/microblaze/mm/init.c +++ b/arch/microblaze/mm/init.c | |||
@@ -228,7 +228,7 @@ static void mm_cmdline_setup(void) | |||
228 | if (maxmem && memory_size > maxmem) { | 228 | if (maxmem && memory_size > maxmem) { |
229 | memory_size = maxmem; | 229 | memory_size = maxmem; |
230 | memory_end = memory_start + memory_size; | 230 | memory_end = memory_start + memory_size; |
231 | memblock.memory.region[0].size = memory_size; | 231 | memblock.memory.regions[0].size = memory_size; |
232 | } | 232 | } |
233 | } | 233 | } |
234 | } | 234 | } |
@@ -271,14 +271,14 @@ asmlinkage void __init mmu_init(void) | |||
271 | machine_restart(NULL); | 271 | machine_restart(NULL); |
272 | } | 272 | } |
273 | 273 | ||
274 | if ((u32) memblock.memory.region[0].size < 0x1000000) { | 274 | if ((u32) memblock.memory.regions[0].size < 0x1000000) { |
275 | printk(KERN_EMERG "Memory must be greater than 16MB\n"); | 275 | printk(KERN_EMERG "Memory must be greater than 16MB\n"); |
276 | machine_restart(NULL); | 276 | machine_restart(NULL); |
277 | } | 277 | } |
278 | /* Find main memory where the kernel is */ | 278 | /* Find main memory where the kernel is */ |
279 | memory_start = (u32) memblock.memory.region[0].base; | 279 | memory_start = (u32) memblock.memory.regions[0].base; |
280 | memory_end = (u32) memblock.memory.region[0].base + | 280 | memory_end = (u32) memblock.memory.regions[0].base + |
281 | (u32) memblock.memory.region[0].size; | 281 | (u32) memblock.memory.regions[0].size; |
282 | memory_size = memory_end - memory_start; | 282 | memory_size = memory_end - memory_start; |
283 | 283 | ||
284 | mm_cmdline_setup(); /* FIXME parse args from command line - not used */ | 284 | mm_cmdline_setup(); /* FIXME parse args from command line - not used */ |