diff options
author | Patrick Delaunay <patrick.delaunay@foss.st.com> | 2022-05-19 10:07:30 +0300 |
---|---|---|
committer | Patrick Delaunay <patrick.delaunay@foss.st.com> | 2022-06-17 15:12:27 +0300 |
commit | 655100d706b963e4793cfe0d00e584e991d78127 (patch) | |
tree | 5454cc497a5dcbba6866fa923b2819d2e55765ab /board/engicam | |
parent | 6350633ed992275c30e608a9a6a509a8801fc700 (diff) | |
download | u-boot-655100d706b963e4793cfe0d00e584e991d78127.tar.xz |
board: engicam: stm32mp1: convert to livetree
Replace gd->fdt_blob access with fdt_getprop() function to the
function ofnode_get_property() to support a live tree.
Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
Diffstat (limited to 'board/engicam')
-rw-r--r-- | board/engicam/stm32mp1/stm32mp1.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/board/engicam/stm32mp1/stm32mp1.c b/board/engicam/stm32mp1/stm32mp1.c index 20d8603c78..0a3e580f5b 100644 --- a/board/engicam/stm32mp1/stm32mp1.c +++ b/board/engicam/stm32mp1/stm32mp1.c @@ -14,8 +14,6 @@ #include <asm/arch/sys_proto.h> #include <power/regulator.h> -DECLARE_GLOBAL_DATA_PTR; - int checkboard(void) { char *mode; @@ -28,8 +26,8 @@ int checkboard(void) mode = "basic"; printf("Board: stm32mp1 in %s mode", mode); - fdt_compat = fdt_getprop(gd->fdt_blob, 0, "compatible", - &fdt_compat_len); + fdt_compat = ofnode_get_property(ofnode_root(), "compatible", + &fdt_compat_len); if (fdt_compat && fdt_compat_len) printf(" (%s)", fdt_compat); puts("\n"); |