From: Brendan Higgins Date: Tue, 19 Feb 2019 23:54:22 +0000 (-0800) Subject: of: unittest: unflatten device tree on UML when testing X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=935665c1a117f34662549f01e1c9bc5ea7132556;p=linux.git 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 Reviewed-by: Frank Rowand Signed-off-by: Rob Herring --- diff --git a/drivers/of/unittest.c b/drivers/of/unittest.c index 872956500c276..66037511f2d70 100644 --- a/drivers/of/unittest.c +++ b/drivers/of/unittest.c @@ -2521,6 +2521,10 @@ static int __init of_unittest(void) int res; /* adding data for unittest */ + + if (IS_ENABLED(CONFIG_UML)) + unittest_unflatten_overlay_base(); + res = unittest_data_add(); if (res) return res;