diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2010-07-29 17:27:56 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2010-07-29 17:27:56 -0400 |
commit | a20df564d15bd28e3df24e1c65b885bd74d23f17 (patch) | |
tree | df2fc17a1dbd53122de2785868cf9fbaeecf2122 /arch/arm/kernel | |
parent | d50f58bbd979e86378dfdec982452041f0e604ef (diff) | |
parent | e69edc7939abda1f696c482faa8168d80420f75c (diff) |
Merge branch 'arm/booting' of git://git.pengutronix.de/git/ukl/linux-2.6 into devel-stable
Conflicts:
arch/arm/Kconfig
Diffstat (limited to 'arch/arm/kernel')
-rw-r--r-- | arch/arm/kernel/Makefile | 4 | ||||
-rw-r--r-- | arch/arm/kernel/compat.c | 7 | ||||
-rw-r--r-- | arch/arm/kernel/compat.h | 2 | ||||
-rw-r--r-- | arch/arm/kernel/setup.c | 11 |
4 files changed, 14 insertions, 10 deletions
diff --git a/arch/arm/kernel/Makefile b/arch/arm/kernel/Makefile index 26d302c28e13..021f72d89799 100644 --- a/arch/arm/kernel/Makefile +++ b/arch/arm/kernel/Makefile | |||
@@ -13,10 +13,12 @@ CFLAGS_REMOVE_return_address.o = -pg | |||
13 | 13 | ||
14 | # Object file lists. | 14 | # Object file lists. |
15 | 15 | ||
16 | obj-y := compat.o elf.o entry-armv.o entry-common.o irq.o \ | 16 | obj-y := elf.o entry-armv.o entry-common.o irq.o \ |
17 | process.o ptrace.o return_address.o setup.o signal.o \ | 17 | process.o ptrace.o return_address.o setup.o signal.o \ |
18 | sys_arm.o stacktrace.o time.o traps.o | 18 | sys_arm.o stacktrace.o time.o traps.o |
19 | 19 | ||
20 | obj-$(CONFIG_DEPRECATED_PARAM_STRUCT) += compat.o | ||
21 | |||
20 | obj-$(CONFIG_LEDS) += leds.o | 22 | obj-$(CONFIG_LEDS) += leds.o |
21 | obj-$(CONFIG_OC_ETM) += etm.o | 23 | obj-$(CONFIG_OC_ETM) += etm.o |
22 | 24 | ||
diff --git a/arch/arm/kernel/compat.c b/arch/arm/kernel/compat.c index 0a1385442f43..925652318b8b 100644 --- a/arch/arm/kernel/compat.c +++ b/arch/arm/kernel/compat.c | |||
@@ -217,10 +217,3 @@ void __init convert_to_tag_list(struct tag *tags) | |||
217 | struct param_struct *params = (struct param_struct *)tags; | 217 | struct param_struct *params = (struct param_struct *)tags; |
218 | build_tag_list(params, ¶ms->u2); | 218 | build_tag_list(params, ¶ms->u2); |
219 | } | 219 | } |
220 | |||
221 | void __init squash_mem_tags(struct tag *tag) | ||
222 | { | ||
223 | for (; tag->hdr.size; tag = tag_next(tag)) | ||
224 | if (tag->hdr.tag == ATAG_MEM) | ||
225 | tag->hdr.tag = ATAG_NONE; | ||
226 | } | ||
diff --git a/arch/arm/kernel/compat.h b/arch/arm/kernel/compat.h index 27e61a68bd1c..39264ab1b9c6 100644 --- a/arch/arm/kernel/compat.h +++ b/arch/arm/kernel/compat.h | |||
@@ -9,5 +9,3 @@ | |||
9 | */ | 9 | */ |
10 | 10 | ||
11 | extern void convert_to_tag_list(struct tag *tags); | 11 | extern void convert_to_tag_list(struct tag *tags); |
12 | |||
13 | extern void squash_mem_tags(struct tag *tag); | ||
diff --git a/arch/arm/kernel/setup.c b/arch/arm/kernel/setup.c index 122d999bdc7c..cbc6ddb1c9bd 100644 --- a/arch/arm/kernel/setup.c +++ b/arch/arm/kernel/setup.c | |||
@@ -44,7 +44,9 @@ | |||
44 | #include <asm/traps.h> | 44 | #include <asm/traps.h> |
45 | #include <asm/unwind.h> | 45 | #include <asm/unwind.h> |
46 | 46 | ||
47 | #if defined(CONFIG_DEPRECATED_PARAM_STRUCT) | ||
47 | #include "compat.h" | 48 | #include "compat.h" |
49 | #endif | ||
48 | #include "atags.h" | 50 | #include "atags.h" |
49 | #include "tcm.h" | 51 | #include "tcm.h" |
50 | 52 | ||
@@ -663,6 +665,13 @@ static int __init customize_machine(void) | |||
663 | } | 665 | } |
664 | arch_initcall(customize_machine); | 666 | arch_initcall(customize_machine); |
665 | 667 | ||
668 | static void __init squash_mem_tags(struct tag *tag) | ||
669 | { | ||
670 | for (; tag->hdr.size; tag = tag_next(tag)) | ||
671 | if (tag->hdr.tag == ATAG_MEM) | ||
672 | tag->hdr.tag = ATAG_NONE; | ||
673 | } | ||
674 | |||
666 | void __init setup_arch(char **cmdline_p) | 675 | void __init setup_arch(char **cmdline_p) |
667 | { | 676 | { |
668 | struct tag *tags = (struct tag *)&init_tags; | 677 | struct tag *tags = (struct tag *)&init_tags; |
@@ -683,12 +692,14 @@ void __init setup_arch(char **cmdline_p) | |||
683 | else if (mdesc->boot_params) | 692 | else if (mdesc->boot_params) |
684 | tags = phys_to_virt(mdesc->boot_params); | 693 | tags = phys_to_virt(mdesc->boot_params); |
685 | 694 | ||
695 | #if defined(CONFIG_DEPRECATED_PARAM_STRUCT) | ||
686 | /* | 696 | /* |
687 | * If we have the old style parameters, convert them to | 697 | * If we have the old style parameters, convert them to |
688 | * a tag list. | 698 | * a tag list. |
689 | */ | 699 | */ |
690 | if (tags->hdr.tag != ATAG_CORE) | 700 | if (tags->hdr.tag != ATAG_CORE) |
691 | convert_to_tag_list(tags); | 701 | convert_to_tag_list(tags); |
702 | #endif | ||
692 | if (tags->hdr.tag != ATAG_CORE) | 703 | if (tags->hdr.tag != ATAG_CORE) |
693 | tags = (struct tag *)&init_tags; | 704 | tags = (struct tag *)&init_tags; |
694 | 705 | ||