gpio: stm32f7: Fix SPL code size
authorPatrice Chotard <patrice.chotard@st.com>
Fri, 4 Jan 2019 09:55:06 +0000 (10:55 +0100)
committerTom Rini <trini@konsulko.com>
Wed, 9 Jan 2019 12:13:33 +0000 (07:13 -0500)
commit4fb224638d608ba3bdc9200360663b4109038580
treea41a8a53c8e92be82d68a6b7862b50971ec2522a
parent39a8f0be2d3df589ba227310e66dca706e154920
gpio: stm32f7: Fix SPL code size

In order to keep SPL code size below the 32Kb limit,
put under CONFIG_SPL_BUILD flag all unused code in SPL.
This is needed for stm32f7xx board which are using SPL.

Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
drivers/gpio/stm32f7_gpio.c