diff options
author | Stephen Boyd <sboyd@kernel.org> | 2024-02-17 04:05:52 +0300 |
---|---|---|
committer | Rob Herring <robh@kernel.org> | 2024-03-08 21:50:39 +0300 |
commit | 221a819aa3ca5bbbc91ce425b3e8d9463b121d09 (patch) | |
tree | 2de33a7dd7e48738c32fde6ab3c3feb44d11743e /drivers/of/unittest.c | |
parent | 7b937cc243e5b1df8780a0aa743ce800df6c68d1 (diff) | |
download | linux-221a819aa3ca5bbbc91ce425b3e8d9463b121d09.tar.xz |
um: Unconditionally call unflatten_device_tree()
Call this function unconditionally so that we can populate an empty DTB
on platforms that don't boot with a command line provided DTB. There's
no harm in calling unflatten_device_tree() unconditionally. If there
isn't a valid initial_boot_params dtb then unflatten_device_tree()
returns early.
Cc: Rob Herring <robh+dt@kernel.org>
Cc: Frank Rowand <frowand.list@gmail.com>
Cc: Richard Weinberger <richard@nod.at>
Cc: Anton Ivanov <anton.ivanov@cambridgegreys.com>
Cc: Johannes Berg <johannes@sipsolutions.net>
Cc: linux-um@lists.infradead.org
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Link: https://lore.kernel.org/r/20240217010557.2381548-4-sboyd@kernel.org
Signed-off-by: Rob Herring <robh@kernel.org>
Diffstat (limited to 'drivers/of/unittest.c')
-rw-r--r-- | drivers/of/unittest.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/of/unittest.c b/drivers/of/unittest.c index cfd60e35a899..891752a20a5f 100644 --- a/drivers/of/unittest.c +++ b/drivers/of/unittest.c @@ -4087,10 +4087,6 @@ static int __init of_unittest(void) add_taint(TAINT_TEST, LOCKDEP_STILL_OK); /* adding data for unittest */ - - if (IS_ENABLED(CONFIG_UML)) - unittest_unflatten_overlay_base(); - res = unittest_data_add(); if (res) return res; |