[Blackfin] arch: fix building with mtd uclinux by putting the mtd_phys option into...
authorMike Frysinger <vapier.adi@gmail.com>
Sat, 2 Feb 2008 07:36:11 +0000 (15:36 +0800)
committerBryan Wu <bryan.wu@analog.com>
Sat, 2 Feb 2008 07:36:11 +0000 (15:36 +0800)
Signed-off-by: Mike Frysinger <vapier.adi@gmail.com>
Signed-off-by: Bryan Wu <bryan.wu@analog.com>
arch/blackfin/kernel/setup.c

index 8d9a40779de1c01de53281a45f973a9d497f0345..8229b1090eb9622a427561d675cf59f1df153d85 100644 (file)
@@ -407,6 +407,10 @@ static __init void parse_cmdline_early(char *cmdline_p)
  */
 static __init void  memory_setup(void)
 {
+#ifdef CONFIG_MTD_UCLINUX
+       unsigned long mtd_phys = 0;
+#endif
+
        _rambase = (unsigned long)_stext;
        _ramstart = (unsigned long)_end;
 
@@ -607,9 +611,6 @@ static __init void setup_bootmem_allocator(void)
 void __init setup_arch(char **cmdline_p)
 {
        unsigned long l1_length, sclk, cclk;
-#ifdef CONFIG_MTD_UCLINUX
-       unsigned long mtd_phys = 0;
-#endif
 
 #ifdef CONFIG_DUMMY_CONSOLE
        conswitchp = &dummy_con;