summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJamie Gibbons <[email protected]>2025-09-30 16:45:34 +0100
committerTom Rini <[email protected]>2025-09-30 10:10:08 -0600
commit8dee93cfc50992990ea6f1871b128d464929e1f5 (patch)
treefe15e48629a62054e3e164b970f0daf14432390b
parent662672dede1ddc77c99dcea03c490603abf05786 (diff)
board: mpfs_icicle: fix pointer assignment in board_fdt_blob_setup()
Correct the assignment in board_fdt_blob_setup() to use *fdtp instead of fdtp, ensuring the caller receives the correct FDT address. This resolves an issue where the device tree pointer was not properly set due to assigning to the local parameter rather than the dereferenced pointer. Fixes: 7c16ebba1ed ("board: mpfs_icicle: implement board_fdt_blob_setup()/board_fit_config_name_match()") Signed-off-by: Jamie Gibbons <[email protected]> Reviewed-by: Conor Dooley <[email protected]>
-rw-r--r--board/microchip/mpfs_icicle/mpfs_icicle.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/board/microchip/mpfs_icicle/mpfs_icicle.c b/board/microchip/mpfs_icicle/mpfs_icicle.c
index 739a9b6cd76..c99207bc89b 100644
--- a/board/microchip/mpfs_icicle/mpfs_icicle.c
+++ b/board/microchip/mpfs_icicle/mpfs_icicle.c
@@ -74,7 +74,7 @@ int board_fit_config_name_match(const char *name)
int board_fdt_blob_setup(void **fdtp)
{
- fdtp = (void *)_end;
+ *fdtp = (void *)_end;
/*
* The devicetree provided by the previous stage is very minimal due to
@@ -85,7 +85,7 @@ int board_fdt_blob_setup(void **fdtp)
*/
if (IS_ENABLED(CONFIG_OF_BOARD) && !IS_ENABLED(CONFIG_MULTI_DTB_FIT)) {
if (gd->arch.firmware_fdt_addr)
- fdtp = (void *)(uintptr_t)gd->arch.firmware_fdt_addr;
+ *fdtp = (void *)(uintptr_t)gd->arch.firmware_fdt_addr;
}
return 0;