diff options
author | Patrick Delaunay <patrick.delaunay@st.com> | 2019-07-30 19:16:40 +0200 |
---|---|---|
committer | Patrice Chotard <patrice.chotard@st.com> | 2019-08-27 11:19:23 +0200 |
commit | 4616ff425cac4b374ef16711a145a4d8db6e3173 (patch) | |
tree | 66a79711ee6e88debc8ebc29ff8b5d2aba7381eb /board | |
parent | dd2810851eb1d7a31b13961ef55b50cedf4b340b (diff) |
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>
Diffstat (limited to 'board')
-rw-r--r-- | board/st/stm32mp1/stm32mp1.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/board/st/stm32mp1/stm32mp1.c b/board/st/stm32mp1/stm32mp1.c index 6e72e68e09..b3bff5f45e 100644 --- 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 */ |