diff options
author | Thomas Bogendoerfer <tsbogend@alpha.franken.de> | 2021-01-05 22:36:31 +0100 |
---|---|---|
committer | Thomas Bogendoerfer <tsbogend@alpha.franken.de> | 2021-01-07 17:11:33 +0100 |
commit | a6e83acee2dd377959ec4bdeaa463da45ba0f811 (patch) | |
tree | 8ac65464eee201cf378da0e13116af57f2ec1623 /arch/mips/mm/init.c | |
parent | MIPS: c-r4k: Fix section mismatch for loongson2_sc_init (diff) | |
download | linux-a6e83acee2dd377959ec4bdeaa463da45ba0f811.tar.xz linux-a6e83acee2dd377959ec4bdeaa463da45ba0f811.zip |
MIPS: Remove empty prom_free_prom_memory functions
Most of the prom_free_prom_memory functions are empty. With
a new weak prom_free_prom_memory() we can remove all of them.
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
Diffstat (limited to 'arch/mips/mm/init.c')
-rw-r--r-- | arch/mips/mm/init.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/mips/mm/init.c b/arch/mips/mm/init.c index bc80893e5c0f..5cb73bf74a8b 100644 --- a/arch/mips/mm/init.c +++ b/arch/mips/mm/init.c @@ -495,6 +495,11 @@ void free_init_pages(const char *what, unsigned long begin, unsigned long end) void (*free_init_pages_eva)(void *begin, void *end) = NULL; +void __weak __init prom_free_prom_memory(void) +{ + /* nothing to do */ +} + void __ref free_initmem(void) { prom_free_prom_memory(); |