diff options
author | Max Filippov <jcmvbkbc@gmail.com> | 2014-04-10 02:40:00 +0400 |
---|---|---|
committer | Chris Zankel <chris@zankel.net> | 2014-04-10 00:19:03 -0700 |
commit | cfe8255f0afcf5d2d1dbfa093223cafe38773fa7 (patch) | |
tree | 9d8e2c425eaddd8c172100d6310f1f3efef07394 /arch/xtensa/platforms | |
parent | e86c4b67feb2c984314eef71314f26cfe39fef36 (diff) | |
download | linux-rpi-cfe8255f0afcf5d2d1dbfa093223cafe38773fa7.tar.gz linux-rpi-cfe8255f0afcf5d2d1dbfa093223cafe38773fa7.tar.bz2 linux-rpi-cfe8255f0afcf5d2d1dbfa093223cafe38773fa7.zip |
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>
Diffstat (limited to 'arch/xtensa/platforms')
-rw-r--r-- | arch/xtensa/platforms/xt2000/setup.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/arch/xtensa/platforms/xt2000/setup.c b/arch/xtensa/platforms/xt2000/setup.c index f9bc87966290..b90555cb8089 100644 --- a/arch/xtensa/platforms/xt2000/setup.c +++ b/arch/xtensa/platforms/xt2000/setup.c @@ -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. */ |