From: Patrick Delaunay Date: Fri, 10 Apr 2020 17:14:01 +0000 (+0200) Subject: board: stm32mp1: correct CONFIG_IS_ENABLED usage for LED X-Git-Url: http://git.dujemihanovic.xyz/login.html?a=commitdiff_plain;h=71ba2cb0d678d2c29dadd5fcca61ce3942876ee6;p=u-boot.git board: stm32mp1: correct CONFIG_IS_ENABLED usage for LED Use the correct macro to test presence CONFIG_LED: replace CONFIG_IS_ENABLED(CONFIG_LED) by CONFIG_IS_ENABLED(LED) Issue see during review unrelated patch "board: stm32mp1: update management of boot-led" http://patchwork.ozlabs.org/patch/1264823/ Cc: Marek Vasut Cc: Patrice Chotard Signed-off-by: Patrick Delaunay Reviewed-by: Marek Vasut Reviewed-by: Patrice Chotard --- diff --git a/board/dhelectronics/dh_stm32mp1/board.c b/board/dhelectronics/dh_stm32mp1/board.c index bad585cfae..322558157e 100644 --- a/board/dhelectronics/dh_stm32mp1/board.c +++ b/board/dhelectronics/dh_stm32mp1/board.c @@ -450,7 +450,7 @@ int board_init(void) board_init_fmc2(); - if (CONFIG_IS_ENABLED(CONFIG_LED)) + if (CONFIG_IS_ENABLED(LED)) led_default_state(); return 0; diff --git a/board/st/stm32mp1/stm32mp1.c b/board/st/stm32mp1/stm32mp1.c index 6c884028d3..45068b1cd9 100644 --- a/board/st/stm32mp1/stm32mp1.c +++ b/board/st/stm32mp1/stm32mp1.c @@ -647,7 +647,7 @@ int board_init(void) sysconf_init(); - if (CONFIG_IS_ENABLED(CONFIG_LED)) + if (CONFIG_IS_ENABLED(LED)) led_default_state(); return 0;