aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Filippov <jcmvbkbc@gmail.com>2017-01-03 12:37:34 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-03-14 22:02:47 -0400
commita7b9c9ddb6f457bab2fc8527ffccf16eefba4af4 (patch)
treeaa2a6f16545c6da87fe1f8a827683bfb9c27aebd
parent019c088dc403448aa29e8650c551baa1e5e29e0f (diff)
xtensa: move parse_tag_fdt out of #ifdef CONFIG_BLK_DEV_INITRD
commit 4ab18701c66552944188dbcd0ce0012729baab84 upstream. FDT tag parsing is not related to whether BLK_DEV_INITRD is configured or not, move it out of the corresponding #ifdef/#endif block. This fixes passing external FDT to the kernel configured w/o BLK_DEV_INITRD support. Signed-off-by: Max Filippov <jcmvbkbc@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--arch/xtensa/kernel/setup.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/xtensa/kernel/setup.c b/arch/xtensa/kernel/setup.c
index 32cdc2c52e98..a45d32abea26 100644
--- a/arch/xtensa/kernel/setup.c
+++ b/arch/xtensa/kernel/setup.c
@@ -133,6 +133,8 @@ static int __init parse_tag_initrd(const bp_tag_t* tag)
133 133
134__tagtable(BP_TAG_INITRD, parse_tag_initrd); 134__tagtable(BP_TAG_INITRD, parse_tag_initrd);
135 135
136#endif /* CONFIG_BLK_DEV_INITRD */
137
136#ifdef CONFIG_OF 138#ifdef CONFIG_OF
137 139
138static int __init parse_tag_fdt(const bp_tag_t *tag) 140static int __init parse_tag_fdt(const bp_tag_t *tag)
@@ -145,8 +147,6 @@ __tagtable(BP_TAG_FDT, parse_tag_fdt);
145 147
146#endif /* CONFIG_OF */ 148#endif /* CONFIG_OF */
147 149
148#endif /* CONFIG_BLK_DEV_INITRD */
149
150static int __init parse_tag_cmdline(const bp_tag_t* tag) 150static int __init parse_tag_cmdline(const bp_tag_t* tag)
151{ 151{
152 strlcpy(command_line, (char *)(tag->data), COMMAND_LINE_SIZE); 152 strlcpy(command_line, (char *)(tag->data), COMMAND_LINE_SIZE);