summaryrefslogtreecommitdiffstats
path: root/drivers/of
diff options
context:
space:
mode:
authorRob Herring <robh@kernel.org>2015-05-28 12:58:02 -0500
committerRob Herring <robh@kernel.org>2015-06-04 20:16:46 -0500
commit649e0a77e28a7796bf62bfda0fe3f2aee094bd58 (patch)
tree807ac88922f44efd83c9179032b3976f34e39a28 /drivers/of
parent0166dc11be911213e0b1b764488c671be4c48cf3 (diff)
downloadblackbird-op-linux-649e0a77e28a7796bf62bfda0fe3f2aee094bd58.tar.gz
blackbird-op-linux-649e0a77e28a7796bf62bfda0fe3f2aee094bd58.zip
of: make unittest select OF_EARLY_FLATTREE instead of depend on it
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 <robh@kernel.org> Cc: Geert Uytterhoeven <geert@linux-m68k.org> Cc: Pantelis Antoniou <pantelis.antoniou@konsulko.com> Acked-by: Grant Likely <grant.likely@lianro.org>
Diffstat (limited to 'drivers/of')
-rw-r--r--drivers/of/Kconfig3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/of/Kconfig b/drivers/of/Kconfig
index fdf7e41e8a4b..8df1b1777745 100644
--- a/drivers/of/Kconfig
+++ b/drivers/of/Kconfig
@@ -13,7 +13,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
OpenPOWER on IntegriCloud