projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
stm32mp1: board: protect the led function calls
[oweals/u-boot.git]
/
board
/
st
/
stm32mp1
/
stm32mp1.c
diff --git
a/board/st/stm32mp1/stm32mp1.c
b/board/st/stm32mp1/stm32mp1.c
index 6e72e68e09fcc80abe3de2b456f18d4e128c6600..b3bff5f45e1dac60bfd43f24961eaa28fa2c0fb3 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 */