Commit c0eab3b7 authored by Mike Frysinger's avatar Mike Frysinger Committed by Bryan Wu

[Blackfin] arch: fix building with mtd uclinux by putting the mtd_phys option...

[Blackfin] arch: fix building with mtd uclinux by putting the mtd_phys option into the function it actually gets used in
Signed-off-by: default avatarMike Frysinger <vapier.adi@gmail.com>
Signed-off-by: default avatarBryan Wu <bryan.wu@analog.com>
parent 550d5538
...@@ -407,6 +407,10 @@ static __init void parse_cmdline_early(char *cmdline_p) ...@@ -407,6 +407,10 @@ static __init void parse_cmdline_early(char *cmdline_p)
*/ */
static __init void memory_setup(void) static __init void memory_setup(void)
{ {
#ifdef CONFIG_MTD_UCLINUX
unsigned long mtd_phys = 0;
#endif
_rambase = (unsigned long)_stext; _rambase = (unsigned long)_stext;
_ramstart = (unsigned long)_end; _ramstart = (unsigned long)_end;
...@@ -607,9 +611,6 @@ static __init void setup_bootmem_allocator(void) ...@@ -607,9 +611,6 @@ static __init void setup_bootmem_allocator(void)
void __init setup_arch(char **cmdline_p) void __init setup_arch(char **cmdline_p)
{ {
unsigned long l1_length, sclk, cclk; unsigned long l1_length, sclk, cclk;
#ifdef CONFIG_MTD_UCLINUX
unsigned long mtd_phys = 0;
#endif
#ifdef CONFIG_DUMMY_CONSOLE #ifdef CONFIG_DUMMY_CONSOLE
conswitchp = &dummy_con; conswitchp = &dummy_con;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment