of/selftest: Add a test for duplicate phandles
authorGrant Likely <grant.likely@linaro.org>
Thu, 2 Oct 2014 12:09:15 +0000 (13:09 +0100)
committerGrant Likely <grant.likely@linaro.org>
Sat, 4 Oct 2014 20:20:19 +0000 (21:20 +0100)
commit841ec21357eee222416e3b7f1b6ef23cfc6ee43f
tree2765f4633c7e6e039f6605f620eab3f60a96a966
parentfc59b4479c172e413df615cea1635247265e07a0
of/selftest: Add a test for duplicate phandles

All phandles in the tree should be unique. Add a testcase to make sure
that this is so.

Note: this testcase fails on the current kernel because the selftest
code itself ends up adding duplicate phandles. Before this testcase is
merged the selftest code needs to be modified to resolve phandles before
adding them.

Signed-off-by: Grant Likely <grant.likely@linaro.org>
Cc: Pantelis Antoniou <pantelis.antoniou@konsulko.com>
drivers/of/selftest.c