RISC-V: Free-up initrd in free_initrd_mem()

We should free-up initrd memory in free_initrd_mem() instead
of doing nothing.

Signed-off-by: Anup Patel <anup.patel@wdc.com>
Reviewed-by: Mike Rapoport <rppt@linux.ibm.com>
This commit is contained in:
Anup Patel 2019-02-13 16:43:01 +05:30 committed by Anup Patel
parent f2c17aabc9
commit 823900cd01

View File

@ -94,8 +94,9 @@ static void __init setup_initrd(void)
initrd_end = 0;
}
void free_initrd_mem(unsigned long start, unsigned long end)
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 */