git.openpandora.org
/
pandora-u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dd28108
)
stm32mp1: board: protect the led function calls
author
Patrick Delaunay
<patrick.delaunay@st.com>
Tue, 30 Jul 2019 17:16:40 +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_LED 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
6e72e68
..
b3bff5f
100644
(file)
--- a/
board/st/stm32mp1/stm32mp1.c
+++ b/
board/st/stm32mp1/stm32mp1.c
@@
-616,7
+616,7
@@
int board_init(void)
sysconf_init();
- if (IS_ENABLED(CONFIG_LED))
+ if (
CONFIG_
IS_ENABLED(CONFIG_LED))
led_default_state();
return 0;
@@
-665,7
+665,9
@@
int board_late_init(void)
void board_quiesce_devices(void)
{
+#ifdef CONFIG_LED
setup_led(LEDST_OFF);
+#endif
}
/* board interface eth init */