]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
board: stm32mp1: use const for struct node_info
authorPatrick Delaunay <patrick.delaunay@st.com>
Wed, 29 Jul 2020 11:24:52 +0000 (13:24 +0200)
committerPatrice Chotard <patrice.chotard@st.com>
Thu, 13 Aug 2020 08:10:33 +0000 (10:10 +0200)
Use const for the variable nodes in ft_board_setup,
this patch follow fdt_fixup_mtdparts prototype and no more use stack.

Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
Reviewed-by: Patrice Chotard <patrice.chotard@st.com>
board/st/stm32mp1/stm32mp1.c

index c5da3d8a731e7054b6531d427d3f79378c90348b..3b677d339b72dd39b615d1cd3fbc560f50c6c653 100644 (file)
@@ -842,7 +842,7 @@ int mmc_get_env_dev(void)
 #if defined(CONFIG_OF_BOARD_SETUP)
 int ft_board_setup(void *blob, struct bd_info *bd)
 {
-       struct node_info nodes[] = {
+       static const struct node_info nodes[] = {
                { "st,stm32f469-qspi",          MTD_DEV_TYPE_NOR,  },
                { "st,stm32f469-qspi",          MTD_DEV_TYPE_SPINAND},
                { "st,stm32mp15-fmc2",          MTD_DEV_TYPE_NAND, },