OSDN Git Service

of/selftest: Use the resolver to fixup phandles
authorGrant Likely <grant.likely@linaro.org>
Thu, 2 Oct 2014 13:36:46 +0000 (14:36 +0100)
committerGrant Likely <grant.likely@linaro.org>
Sat, 4 Oct 2014 20:24:35 +0000 (21:24 +0100)
commit2eb46da2a760e5764c48b752a5ef320e02b96b21
tree4d48a347c24c466d5bfe11b33e878585507daa74
parent7941b27b16e3282f6ec8817e36492f1deec753a7
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>
drivers/of/Kconfig
drivers/of/selftest.c
drivers/of/testcase-data/testcases.dts