stm32mp1: board: protect the led function calls
Avoid compilation issue when CONFIG_LED is not activated Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
This commit is contained in:
committed by
Patrice Chotard
parent
dd2810851e
commit
4616ff425c
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user