of: unittest: treat missing of_root as error instead of fixing up
authorFrank Rowand <frowand.list@gmail.com>
Sat, 17 Feb 2024 01:05:55 +0000 (17:05 -0800)
committerRob Herring <robh@kernel.org>
Fri, 8 Mar 2024 18:50:39 +0000 (12:50 -0600)
commitd1eabd218edee6a6f0458a8705ebc02b860a624f
tree59ca814dc65bcde15a89dd7859553ba2df5644ac
parent40f18dbbb42c56019b889b5b1fdce3da89e354da
of: unittest: treat missing of_root as error instead of fixing up

unflatten_device_tree() now ensures that the 'of_root' node is populated
with the root of a default empty devicetree. Remove the unittest code
that created 'of_root' if it was missing. Verify that 'of_root' is valid
before attempting to attach the testcase-data subtree. Remove the
unittest code that unflattens the unittest overlay base if architecture
is UML because that is always done now.

Signed-off-by: Frank Rowand <frowand.list@gmail.com>
Link: https://lore.kernel.org/r/20230317053415.2254616-3-frowand.list@gmail.com
Cc: Rob Herring <robh+dt@kernel.org>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Link: https://lore.kernel.org/r/20240217010557.2381548-7-sboyd@kernel.org
Signed-off-by: Rob Herring <robh@kernel.org>
drivers/of/unittest.c