[PATCH 2/4] MIPS: qemu-malta: use mips_add_ram0()

Antony Pavlov antonynpavlov at gmail.com
Sat Jan 26 11:52:38 EST 2013


Signed-off-by: Antony Pavlov <antonynpavlov at gmail.com>
---
 arch/mips/boards/qemu-malta/init.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/mips/boards/qemu-malta/init.c b/arch/mips/boards/qemu-malta/init.c
index 28c23aa..fb4472f 100644
--- a/arch/mips/boards/qemu-malta/init.c
+++ b/arch/mips/boards/qemu-malta/init.c
@@ -20,7 +20,7 @@
 #include <types.h>
 #include <driver.h>
 #include <init.h>
-#include <memory.h>
+#include <asm/memory.h>
 #include <ns16550.h>
 #include <mach/hardware.h>
 #include <io.h>
@@ -30,7 +30,7 @@
 
 static int malta_mem_init(void)
 {
-	barebox_add_memory_bank("ram0", 0xa0000000, SZ_256M);
+	mips_add_ram0(SZ_256M);
 
 	return 0;
 }
-- 
1.7.10.4




More information about the barebox mailing list