Title: [4188] trunk/arch/blackfin/kernel/setup.c:
fix building with mtd uclinux by putting the mtd_phys option into the function it actually gets used in
- Revision
- 4188
- Author
- vapier
- Date
- 2008-01-30 15:43:53 -0600 (Wed, 30 Jan 2008)
Log Message
fix building with mtd uclinux by putting the mtd_phys option into the function it actually gets used in
Diffstat
setup.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
Modified Paths
Diff
Modified: trunk/arch/blackfin/kernel/setup.c (4187 => 4188)
--- trunk/arch/blackfin/kernel/setup.c 2008-01-30 20:11:08 UTC (rev 4187)
+++ trunk/arch/blackfin/kernel/setup.c 2008-01-30 21:43:53 UTC (rev 4188)
@@ -426,6 +426,10 @@
*/
static __init void memory_setup(void)
{
+#ifdef CONFIG_MTD_UCLINUX
+ unsigned long mtd_phys = 0;
+#endif
+
_rambase = (unsigned long)_stext;
_ramstart = (unsigned long)__bss_stop;
@@ -625,9 +629,6 @@
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;
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
http://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits