]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
board: stm32mp1: correct CONFIG_IS_ENABLED usage for LED
authorPatrick Delaunay <patrick.delaunay@st.com>
Fri, 10 Apr 2020 17:14:01 +0000 (19:14 +0200)
committerPatrice Chotard <patrice.chotard@st.com>
Wed, 15 Apr 2020 07:10:12 +0000 (09:10 +0200)
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 <marex@denx.de>
Cc: Patrice Chotard <patrice.chotard@st.com>
Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
Reviewed-by: Marek Vasut <marex@denx.de>
Reviewed-by: Patrice Chotard <patrice.chotard@st.com>
board/dhelectronics/dh_stm32mp1/board.c
board/st/stm32mp1/stm32mp1.c

index bad585cfaed1c7bab0c6d91e6f013f0bed499ea4..322558157ec56bed02a303a10a54207cfafcb891 100644 (file)
@@ -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;
index 6c884028d3a494372ee7fe778f9103eb05799f80..45068b1cd9d1024304f296624363e95ca66f8c3f 100644 (file)
@@ -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;