diff options
author | Christoph Hellwig <[email protected]> | 2019-05-20 08:33:26 +0200 |
---|---|---|
committer | Paul Walmsley <[email protected]> | 2019-07-04 03:12:57 -0700 |
commit | 2ebca1cbb4a5a31f8d89f22d9d410b432a97f7a7 (patch) | |
tree | b7027278557ed3fcab3156a841f79c39094cf1b1 | |
parent | df7e9059cf6bdf4a8c11edeee30231f49815b071 (diff) |
riscv: remove free_initrd_mem
The RISC-V free_initrd_mem is identical to the default one, except
that it doesn't poison the freed memory. Remove it so that the
default implementations gets used instead.
Signed-off-by: Christoph Hellwig <[email protected]>
Reviewed-by: Anup Patel <[email protected]>
Reviewed-by: Palmer Dabbelt <[email protected]>
Signed-off-by: Paul Walmsley <[email protected]>
-rw-r--r-- | arch/riscv/mm/init.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/arch/riscv/mm/init.c b/arch/riscv/mm/init.c index 160d79d58dd5..b1ca38642251 100644 --- a/arch/riscv/mm/init.c +++ b/arch/riscv/mm/init.c @@ -86,11 +86,6 @@ disable: initrd_start = 0; initrd_end = 0; } - -void __init free_initrd_mem(unsigned long start, unsigned long end) -{ - free_reserved_area((void *)start, (void *)end, -1, "initrd"); -} #endif /* CONFIG_BLK_DEV_INITRD */ void __init setup_bootmem(void) |