From: Patrick Delaunay Date: Tue, 30 Jul 2019 19:16:43 +0200 Subject: [U-Boot] [PATCH 35/48] stm32mp1: board: remove board_check_usb_power when ADC is not activated In-Reply-To: <1564507016-16570-1-git-send-email-patrick.delaunay@st.com> References: <1564507016-16570-1-git-send-email-patrick.delaunay@st.com> Message-ID: <1564507016-16570-36-git-send-email-patrick.delaunay@st.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Avoid compilation issue when CONFIG_ADC is not activated Signed-off-by: Patrick Delaunay --- board/st/stm32mp1/stm32mp1.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/board/st/stm32mp1/stm32mp1.c b/board/st/stm32mp1/stm32mp1.c index a96e675..a67e33e 100644 --- a/board/st/stm32mp1/stm32mp1.c +++ b/board/st/stm32mp1/stm32mp1.c @@ -296,6 +296,7 @@ static void __maybe_unused led_error_blink(u32 nb_blink) hang(); } +#ifdef CONFIG_ADC static int board_check_usb_power(void) { struct ofnode_phandle_args adc_args; @@ -429,6 +430,7 @@ static int board_check_usb_power(void) return 0; } +#endif /* CONFIG_ADC */ static void sysconf_init(void) { @@ -659,8 +661,10 @@ int board_late_init(void) } #endif +#ifdef CONFIG_ADC /* for DK1/DK2 boards */ board_check_usb_power(); +#endif /* CONFIG_ADC */ /* Check the boot-source to disable bootdelay */ boot_device = env_get("boot_device"); -- 2.7.4