]> git.karo-electronics.de Git - linux-beck.git/commitdiff
of: make unittest select OF_EARLY_FLATTREE instead of depend on it
authorRob Herring <robh@kernel.org>
Thu, 28 May 2015 17:58:02 +0000 (12:58 -0500)
committerRob Herring <robh@kernel.org>
Fri, 5 Jun 2015 01:16:46 +0000 (20:16 -0500)
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>
drivers/of/Kconfig

index fdf7e41e8a4b04057a4b5e35a6135e520873dc4f..8df1b1777745e8e0dfb46611197a8238c929af4e 100644 (file)
@@ -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