diff options
Diffstat (limited to 'arch/mips/mm/init.c')
-rw-r--r-- | arch/mips/mm/init.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/arch/mips/mm/init.c b/arch/mips/mm/init.c index 49065c133ebf..fb427dbfe71e 100644 --- a/arch/mips/mm/init.c +++ b/arch/mips/mm/init.c | |||
@@ -467,7 +467,7 @@ void __init mem_init(void) | |||
467 | } | 467 | } |
468 | #endif /* !CONFIG_NEED_MULTIPLE_NODES */ | 468 | #endif /* !CONFIG_NEED_MULTIPLE_NODES */ |
469 | 469 | ||
470 | static void free_init_pages(char *what, unsigned long begin, unsigned long end) | 470 | void free_init_pages(const char *what, unsigned long begin, unsigned long end) |
471 | { | 471 | { |
472 | unsigned long pfn; | 472 | unsigned long pfn; |
473 | 473 | ||
@@ -493,17 +493,9 @@ void free_initrd_mem(unsigned long start, unsigned long end) | |||
493 | } | 493 | } |
494 | #endif | 494 | #endif |
495 | 495 | ||
496 | extern unsigned long prom_free_prom_memory(void); | ||
497 | |||
498 | void free_initmem(void) | 496 | void free_initmem(void) |
499 | { | 497 | { |
500 | unsigned long freed; | 498 | prom_free_prom_memory(); |
501 | |||
502 | freed = prom_free_prom_memory(); | ||
503 | if (freed) | ||
504 | printk(KERN_INFO "Freeing firmware memory: %ldkb freed\n", | ||
505 | freed >> 10); | ||
506 | |||
507 | free_init_pages("unused kernel memory", | 499 | free_init_pages("unused kernel memory", |
508 | __pa_symbol(&__init_begin), | 500 | __pa_symbol(&__init_begin), |
509 | __pa_symbol(&__init_end)); | 501 | __pa_symbol(&__init_end)); |