projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5e959ab
)
stm32mp1: board: remove board_check_usb_power when ADC is not activated
author
Patrick Delaunay
<patrick.delaunay@st.com>
Tue, 30 Jul 2019 17:16:43 +0000
(19:16 +0200)
committer
Patrice Chotard
<patrice.chotard@st.com>
Tue, 27 Aug 2019 09:19:23 +0000
(11:19 +0200)
Avoid compilation issue when CONFIG_ADC is not activated
Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
board/st/stm32mp1/stm32mp1.c
patch
|
blob
|
history
diff --git
a/board/st/stm32mp1/stm32mp1.c
b/board/st/stm32mp1/stm32mp1.c
index 1f6ee3f742e6171dce4f443d8e21bfef27dbfa25..12974a6471ab1151e1964fa41638a00c9e61638e 100644
(file)
--- 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");