diff options
author | Patrick Delaunay <patrick.delaunay@st.com> | 2019-07-30 19:16:43 +0200 |
---|---|---|
committer | Patrice Chotard <patrice.chotard@st.com> | 2019-08-27 11:19:23 +0200 |
commit | 415424737128bd2d17ca3a91f847a106aa615d67 (patch) | |
tree | d0f72bc4b53765e27615fd57cd5d8a1242d54611 /board/st/stm32mp1/stm32mp1.c | |
parent | 5e959ab85e56843aff39880430ebf25f4676a44e (diff) |
stm32mp1: board: remove board_check_usb_power when ADC is not activated
Avoid compilation issue when CONFIG_ADC is not activated
Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
Diffstat (limited to 'board/st/stm32mp1/stm32mp1.c')
-rw-r--r-- | board/st/stm32mp1/stm32mp1.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/board/st/stm32mp1/stm32mp1.c b/board/st/stm32mp1/stm32mp1.c index 1f6ee3f742..12974a6471 100644 --- a/board/st/stm32mp1/stm32mp1.c +++ b/board/st/stm32mp1/stm32mp1.c @@ -297,6 +297,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; @@ -430,6 +431,7 @@ static int board_check_usb_power(void) return 0; } +#endif /* CONFIG_ADC */ static void sysconf_init(void) { @@ -660,8 +662,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"); |