ARM: stm32: Fix SoM and board coding strap GPIO handling on DHSOM
authorMarek Vasut <marex@denx.de>
Sat, 13 Nov 2021 02:26:39 +0000 (03:26 +0100)
committerPatrice Chotard <patrice.chotard@foss.st.com>
Tue, 30 Nov 2021 15:43:28 +0000 (16:43 +0100)
commit525dd34535005ecde1cde7235c4d1d7329617248
treef10c259940f9f2b3d9c2e65fd6eab56aa815607b
parent5e3e882cf2ef50fbad63493c7ade15b91e2ebc2c
ARM: stm32: Fix SoM and board coding strap GPIO handling on DHSOM

The variables retaining the strap values have to be initialized, always,
make it so. Moreover, free the requested GPIO list at the end to avoid
wasting memory.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Patrice Chotard <patrice.chotard@foss.st.com>
Cc: Patrick Delaunay <patrick.delaunay@foss.st.com>
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
Reviewed-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
board/dhelectronics/dh_stm32mp1/board.c