]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
xtensa: move parse_tag_fdt out of #ifdef CONFIG_BLK_DEV_INITRD
authorMax Filippov <jcmvbkbc@gmail.com>
Tue, 3 Jan 2017 17:37:34 +0000 (09:37 -0800)
committerMax Filippov <jcmvbkbc@gmail.com>
Wed, 1 Mar 2017 20:31:52 +0000 (12:31 -0800)
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.

Cc: stable@vger.kernel.org
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
arch/xtensa/kernel/setup.c

index 88a044af7504dd9c47d0f97d64620ac8de4b5739..23f2e034ba46cb03cff51e734d96def6b5548fb5 100644 (file)
@@ -133,6 +133,8 @@ static int __init parse_tag_initrd(const bp_tag_t* tag)
 
 __tagtable(BP_TAG_INITRD, parse_tag_initrd);
 
+#endif /* CONFIG_BLK_DEV_INITRD */
+
 #ifdef CONFIG_OF
 
 static int __init parse_tag_fdt(const bp_tag_t *tag)
@@ -145,8 +147,6 @@ __tagtable(BP_TAG_FDT, parse_tag_fdt);
 
 #endif /* CONFIG_OF */
 
-#endif /* CONFIG_BLK_DEV_INITRD */
-
 static int __init parse_tag_cmdline(const bp_tag_t* tag)
 {
        strlcpy(command_line, (char *)(tag->data), COMMAND_LINE_SIZE);