Skip to content
Snippets Groups Projects
Commit cb927ad8 authored by Stephen Boyd's avatar Stephen Boyd Committed by Tomasz Nowicki
Browse files

BACKPORT: of: Always unflatten in unflatten_and_copy_device_tree()


We want to populate an empty DT whenever CONFIG_OF is enabled so that
overlays can be applied and the DT unit tests can be run. Make
unflatten_and_copy_device_tree() stop printing a warning if the
'initial_boot_params' pointer is NULL. Instead, simply copy the dtb if
there is one and then unflatten it. If there isn't a DT to copy, then
the call to unflatten_device_tree() is largely a no-op, so nothing
really changes here.

Cc: Rob Herring <robh+dt@kernel.org>
Cc: Frank Rowand <frowand.list@gmail.com>
Signed-off-by: default avatarStephen Boyd <sboyd@kernel.org>
Link: https://lore.kernel.org/r/20240217010557.2381548-2-sboyd@kernel.org


Signed-off-by: default avatarRob Herring <robh@kernel.org>
(cherry picked from commit dc1460fe)
Bug: 378675550
Change-Id: Iea68bcdc586fea8e2cbf579235afa0e7c583cb65
parent e664677e
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment