Skip to content

Commit

Permalink
xtensa: xt2000: drop redundant sysmem initialization
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Max Filippov authored and Chris Zankel committed Apr 10, 2014
1 parent e86c4b6 commit cfe8255
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions arch/xtensa/platforms/xt2000/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
Expand Down

0 comments on commit cfe8255

Please sign in to comment.