diff options
author | Grant Likely <grant.likely@linaro.org> | 2014-10-02 09:36:46 -0400 |
---|---|---|
committer | Grant Likely <grant.likely@linaro.org> | 2014-10-04 16:24:35 -0400 |
commit | 2eb46da2a760e5764c48b752a5ef320e02b96b21 (patch) | |
tree | 4d48a347c24c466d5bfe11b33e878585507daa74 /drivers/of/Kconfig | |
parent | 7941b27b16e3282f6ec8817e36492f1deec753a7 (diff) |
of/selftest: Use the resolver to fixup phandles
The selftest data ends up causing duplicate phandles in the live tree
for the time that the testcase data is inserted into the live tree. This
is obviously a bad situation because anything attempting to read the
tree while the selftests are running make resolve phandles to one of the
testcase data nodes. Fix the problem by using the of_resolve_phandles()
function to eliminate duplicates.
Signed-off-by: Grant Likely <grant.likely@linaro.org>
Cc: Pantelis Antoniou <pantelis.antoniou@konsulko.com>
Cc: Gaurav Minocha <gaurav.minocha.os@gmail.com>
Diffstat (limited to 'drivers/of/Kconfig')
-rw-r--r-- | drivers/of/Kconfig | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/of/Kconfig b/drivers/of/Kconfig index 6b81a36f6420..1a13f5b722c5 100644 --- a/drivers/of/Kconfig +++ b/drivers/of/Kconfig | |||
@@ -11,6 +11,7 @@ config OF_SELFTEST | |||
11 | bool "Device Tree Runtime self tests" | 11 | bool "Device Tree Runtime self tests" |
12 | depends on OF_IRQ && OF_EARLY_FLATTREE | 12 | depends on OF_IRQ && OF_EARLY_FLATTREE |
13 | select OF_DYNAMIC | 13 | select OF_DYNAMIC |
14 | select OF_RESOLVE | ||
14 | help | 15 | help |
15 | This option builds in test cases for the device tree infrastructure | 16 | This option builds in test cases for the device tree infrastructure |
16 | that are executed once at boot time, and the results dumped to the | 17 | that are executed once at boot time, and the results dumped to the |