Return-Path: Received: from mail-pf0-f196.google.com ([209.85.192.196]:35997 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751055AbdCAUn7 (ORCPT ); Wed, 1 Mar 2017 15:43:59 -0500 Received: by mail-pf0-f196.google.com with SMTP id j5so4539595pfb.3 for ; Wed, 01 Mar 2017 12:42:43 -0800 (PST) From: Max Filippov To: linux-xtensa@linux-xtensa.org Cc: Chris Zankel , Marc Gauthier , Max Filippov , stable@vger.kernel.org Subject: [PATCH] xtensa: move parse_tag_fdt out of #ifdef CONFIG_BLK_DEV_INITRD Date: Wed, 1 Mar 2017 12:35:16 -0800 Message-Id: <1488400516-1831-1-git-send-email-jcmvbkbc@gmail.com> Sender: stable-owner@vger.kernel.org List-ID: 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 --- arch/xtensa/kernel/setup.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/xtensa/kernel/setup.c b/arch/xtensa/kernel/setup.c index 88a044a..23f2e03 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) __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); -- 2.1.4