aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrendan Higgins <brendanhiggins@google.com>2019-02-19 18:54:22 -0500
committerRob Herring <robh@kernel.org>2019-02-28 12:50:10 -0500
commit935665c1a117f34662549f01e1c9bc5ea7132556 (patch)
tree36f9715b8e1fc7c5e6d7e8ed3dea9d76b4a2af28
parentda36822dec7436bc270d3e24edc89c4ceb708bb8 (diff)
of: unittest: unflatten device tree on UML when testing
UML supports enabling OF, and is useful for running the device tree tests, so add support for unflattening device tree blobs so we can actually use it. Signed-off-by: Brendan Higgins <brendanhiggins@google.com> Reviewed-by: Frank Rowand <frank.rowand@sony.com> Signed-off-by: Rob Herring <robh@kernel.org>
-rw-r--r--drivers/of/unittest.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/of/unittest.c b/drivers/of/unittest.c
index 872956500c27..66037511f2d7 100644
--- a/drivers/of/unittest.c
+++ b/drivers/of/unittest.c
@@ -2521,6 +2521,10 @@ static int __init of_unittest(void)
2521 int res; 2521 int res;
2522 2522
2523 /* adding data for unittest */ 2523 /* adding data for unittest */
2524
2525 if (IS_ENABLED(CONFIG_UML))
2526 unittest_unflatten_overlay_base();
2527
2524 res = unittest_data_add(); 2528 res = unittest_data_add();
2525 if (res) 2529 if (res)
2526 return res; 2530 return res;