forked from luck/tmp_suning_uos_patched
xtensa: xt2000: drop redundant sysmem initialization
sysmem structure initialization in xt2000 platform_init is identical to the one done in init_arch just before the call to platform_init. Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
This commit is contained in:
parent
e86c4b67fe
commit
cfe8255f0a
|
@ -92,18 +92,8 @@ void __init platform_setup(char** cmdline)
|
|||
|
||||
/* early initialization */
|
||||
|
||||
extern sysmem_info_t __initdata sysmem;
|
||||
|
||||
void platform_init(bp_tag_t* first)
|
||||
void __init platform_init(bp_tag_t *first)
|
||||
{
|
||||
/* Set default memory block if not provided by the bootloader. */
|
||||
|
||||
if (sysmem.nr_banks == 0) {
|
||||
sysmem.nr_banks = 1;
|
||||
sysmem.bank[0].start = PLATFORM_DEFAULT_MEM_START;
|
||||
sysmem.bank[0].end = PLATFORM_DEFAULT_MEM_START
|
||||
+ PLATFORM_DEFAULT_MEM_SIZE;
|
||||
}
|
||||
}
|
||||
|
||||
/* Heartbeat. Let the LED blink. */
|
||||
|
|
Loading…
Reference in New Issue
Block a user