There is no need to have BOOT_PARAMS_SIZE known outside of atags.c
[pandora-kernel.git] / arch / arm / kernel / atags.c
index e2e934c..56fef9a 100644 (file)
@@ -1,5 +1,4 @@
 #include <linux/slab.h>
-#include <linux/kexec.h>
 #include <linux/proc_fs.h>
 #include <asm/setup.h>
 #include <asm/types.h>
@@ -35,21 +34,21 @@ create_proc_entries(void)
 {
        struct proc_dir_entry* tags_entry;
 
-       tags_entry = create_proc_read_entry("atags", 0400, &proc_root, read_buffer, &tags_buffer);
+       tags_entry = create_proc_read_entry("atags", 0400, NULL, read_buffer, &tags_buffer);
        if (!tags_entry)
                return -ENOMEM;
 
        return 0;
 }
 
-
-static char __initdata atags_copy_buf[KEXEC_BOOT_PARAMS_SIZE];
+#define BOOT_PARAMS_SIZE 1536
+static char __initdata atags_copy_buf[BOOT_PARAMS_SIZE];
 static char __initdata *atags_copy;
 
 void __init save_atags(const struct tag *tags)
 {
        atags_copy = atags_copy_buf;
-       memcpy(atags_copy, tags, KEXEC_BOOT_PARAMS_SIZE);
+       memcpy(atags_copy, tags, sizeof(atags_copy_buf));
 }