csky: Add setup_initrd check code
Subsystems (2)
[email protected]
maintainerPATCH 1/1 csky: Add setup_initrd check code
From: Guo Ren <[email protected]>
We should give some necessary check for initrd just like other architectures and it seems that setup_initrd() could be a common code for all architectures.
Signed-off-by Guo Ren <[email protected]>
--- arch/csky/kernel/setup.c | 3 --- arch/csky/mm/init.c | 44 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 44 insertions(+), 3 deletions(-)
arch/csky/kernel/setup.c +0 -3
@@ -47,9 +47,6 @@ static void __init csky_memblock_init(void)signed long size;memblock_reserve (__pa (_stext), _end - _stext); -#ifdef CONFIG_BLK_DEV_INITRD -memblock_reserve (__pa (initrd_start), initrd_end - initrd_start); -#endif early_init_fdt_reserve_self ();early_init_fdt_scan_reserved_mem ();
arch/csky/mm/init.c +44 -0
56 lines not on this page · raw message
Signature · 1 line
2.7.4