Skip to content

Commit 8dee93c

Browse files
jamiegibbonstrini
authored andcommitted
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: 7c16ebb ("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]>
1 parent 662672d commit 8dee93c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

board/microchip/mpfs_icicle/mpfs_icicle.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ int board_fit_config_name_match(const char *name)
7474

7575
int board_fdt_blob_setup(void **fdtp)
7676
{
77-
fdtp = (void *)_end;
77+
*fdtp = (void *)_end;
7878

7979
/*
8080
* The devicetree provided by the previous stage is very minimal due to
@@ -85,7 +85,7 @@ int board_fdt_blob_setup(void **fdtp)
8585
*/
8686
if (IS_ENABLED(CONFIG_OF_BOARD) && !IS_ENABLED(CONFIG_MULTI_DTB_FIT)) {
8787
if (gd->arch.firmware_fdt_addr)
88-
fdtp = (void *)(uintptr_t)gd->arch.firmware_fdt_addr;
88+
*fdtp = (void *)(uintptr_t)gd->arch.firmware_fdt_addr;
8989
}
9090

9191
return 0;

0 commit comments

Comments
 (0)