Commit 2ebca1cb authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Paul Walmsley

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: default avatarChristoph Hellwig <hch@lst.de>
Reviewed-by: default avatarAnup Patel <anup@brainfault.org>
Reviewed-by: default avatarPalmer Dabbelt <palmer@sifive.com>
Signed-off-by: default avatarPaul Walmsley <paul.walmsley@sifive.com>
parent df7e9059
...@@ -86,11 +86,6 @@ static void __init setup_initrd(void) ...@@ -86,11 +86,6 @@ static void __init setup_initrd(void)
initrd_start = 0; initrd_start = 0;
initrd_end = 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 */ #endif /* CONFIG_BLK_DEV_INITRD */
void __init setup_bootmem(void) void __init setup_bootmem(void)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment