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
1 changed files with 2 additions and 1 deletions

View File

@ -94,8 +94,9 @@ disable:
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 */