Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751717AbbFBWrR (ORCPT ); Tue, 2 Jun 2015 18:47:17 -0400 Received: from mail-qk0-f173.google.com ([209.85.220.173]:34830 "EHLO mail-qk0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752116AbbFBWrA (ORCPT ); Tue, 2 Jun 2015 18:47:00 -0400 From: Rob Herring To: devicetree@vger.kernel.org, Grant Likely , Ralf Baechle Cc: linux-kernel@vger.kernel.org, Pantelis Antoniou , Geert Uytterhoeven , Rob Herring Subject: [PATCH 3/3] of: make unittest select OF_EARLY_FLATTREE instead of depend on it Date: Tue, 2 Jun 2015 17:46:44 -0500 Message-Id: <1433285204-4307-4-git-send-email-robh@kernel.org> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1433285204-4307-1-git-send-email-robh@kernel.org> References: <1433285204-4307-1-git-send-email-robh@kernel.org> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1305 Lines: 37 The DT unittest currently requires an arch (typically) to select OF_EARLY_FLATTREE. Remove this dependency by selecting it directly so that the unittest can be enabled easily on any architecture. With this and the prior commit, we can easily enable and run unittests starting with x86 defconfig rather than hunting for the combination of config options to enable OF on x86. Signed-off-by: Rob Herring Cc: Geert Uytterhoeven Cc: Pantelis Antoniou Cc: Grant Likely --- drivers/of/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/of/Kconfig b/drivers/of/Kconfig index 415b51d..7e76af9 100644 --- a/drivers/of/Kconfig +++ b/drivers/of/Kconfig @@ -8,7 +8,8 @@ if OF config OF_UNITTEST bool "Device Tree runtime unit tests" - depends on OF_IRQ && OF_EARLY_FLATTREE + depends on OF_IRQ + select OF_EARLY_FLATTREE select OF_RESOLVE help This option builds in test cases for the device tree infrastructure -- 2.1.0 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/