]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
ARM: OMAP: Moved parse_tag_omap to common.c
authorTony Lindgren <tony@atomide.com>
Wed, 29 Jun 2005 13:16:03 +0000 (06:16 -0700)
committerTony Lindgren <tony@atomide.com>
Wed, 29 Jun 2005 13:16:03 +0000 (06:16 -0700)
In 2.6.13-rc1 arch.c disappears.

arch/arm/kernel/arch.c
arch/arm/mach-omap/common.c

index 6159add64b7ded42f31367182f1948292b523779..c35c8d81b67df9bddfee0c0b8f9df2132bcb5be3 100644 (file)
@@ -45,26 +45,3 @@ static int __init parse_tag_acorn(const struct tag *tag)
 __tagtable(ATAG_ACORN, parse_tag_acorn);
 
 #endif
-
-#ifdef CONFIG_OMAP_BOOT_TAG
-
-unsigned char omap_bootloader_tag[512];
-int omap_bootloader_tag_len = 0;
-
-static int __init parse_tag_omap(const struct tag *tag)
-{
-       u32 size = tag->hdr.size - (sizeof(tag->hdr) >> 2);
-
-        size <<= 2;
-       if (size > sizeof(omap_bootloader_tag))
-               return -1;
-
-       memcpy(omap_bootloader_tag, tag->u.omap.data, size);
-       omap_bootloader_tag_len = size;
-
-        return 0;
-}
-
-__tagtable(ATAG_BOARD, parse_tag_omap);
-
-#endif
index b6a5b39e7e88dc8c3744b356bf2845f477929586..51139a6f040e4dc6d39f7c609022bfe1727bfb62 100644 (file)
 
 #define NO_LENGTH_CHECK 0xffffffff
 
-extern int omap_bootloader_tag_len;
-extern u8 omap_bootloader_tag[];
+unsigned char omap_bootloader_tag[512];
+int omap_bootloader_tag_len = 0;
 
 struct omap_board_config_kernel *omap_board_config;
 int omap_board_config_size = 0;
 
+#ifdef CONFIG_OMAP_BOOT_TAG
+
+static int __init parse_tag_omap(const struct tag *tag)
+{
+       u32 size = tag->hdr.size - (sizeof(tag->hdr) >> 2);
+
+        size <<= 2;
+       if (size > sizeof(omap_bootloader_tag))
+               return -1;
+
+       memcpy(omap_bootloader_tag, tag->u.omap.data, size);
+       omap_bootloader_tag_len = size;
+
+        return 0;
+}
+
+__tagtable(ATAG_BOARD, parse_tag_omap);
+
+#endif
+
 static const void *get_config(u16 tag, size_t len, int skip, size_t *len_out)
 {
        struct omap_board_config_kernel *kinfo = NULL;