aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar7-2.6/files
diff options
context:
space:
mode:
authorEugene Konev <ejka@imfi.kspu.ru>2007-03-19 17:25:06 +0000
committerEugene Konev <ejka@imfi.kspu.ru>2007-03-19 17:25:06 +0000
commitf04dd67969a38e54002c20828acf93090c4d10a4 (patch)
tree3b95e8fa63d2f96b6551d9576dd7c6400c17c148 /target/linux/ar7-2.6/files
parent62c5b1c4eff59959c895bfce42974f0c09d6c4c3 (diff)
downloadupstream-f04dd67969a38e54002c20828acf93090c4d10a4.tar.gz
upstream-f04dd67969a38e54002c20828acf93090c4d10a4.tar.bz2
upstream-f04dd67969a38e54002c20828acf93090c4d10a4.zip
Remove initrd code leftovers. Also fixes "Bad page state" on boot (kernel tried to free initramfs twice).
SVN-Revision: 6613
Diffstat (limited to 'target/linux/ar7-2.6/files')
-rw-r--r--target/linux/ar7-2.6/files/arch/mips/ar7/memory.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/target/linux/ar7-2.6/files/arch/mips/ar7/memory.c b/target/linux/ar7-2.6/files/arch/mips/ar7/memory.c
index ea5b5bee77..17cb740b3f 100644
--- a/target/linux/ar7-2.6/files/arch/mips/ar7/memory.c
+++ b/target/linux/ar7-2.6/files/arch/mips/ar7/memory.c
@@ -25,7 +25,6 @@
*/
#include <linux/bootmem.h>
#include <linux/init.h>
-#include <linux/initrd.h>
#include <linux/mm.h>
#include <linux/module.h>
#include <linux/pfn.h>
@@ -68,8 +67,6 @@ static int __init memsize(void)
return result;
}
-extern unsigned long __initramfs_start, __initramfs_end;
-
#ifdef CONFIG_NEED_MULTIPLE_NODES
static bootmem_data_t node_bootmem_data;
pg_data_t __node_data[1] = {
@@ -176,11 +173,6 @@ void __init prom_meminit(void)
unsigned long bootmap_size;
#endif
-#ifdef CONFIG_BLK_DEV_INITRD
- initrd_start = (unsigned long)&__initramfs_start;
- initrd_end = (unsigned long)&__initramfs_end;
-#endif
-
pages = memsize() >> PAGE_SHIFT;
add_memory_region(ARCH_PFN_OFFSET << PAGE_SHIFT, pages <<
PAGE_SHIFT, BOOT_MEM_RAM);