diff mbox series

[v4,12/13] board: starfive: spl: Fix the wrong use of CONFIG_IS_ENABLED()

Message ID 20241111020808.38974-13-hal.feng@starfivetech.com
State Changes Requested
Delegated to: Andes
Headers show
Series Support OF_UPSTREAM for StarFive JH7110 | expand

Commit Message

Hal Feng Nov. 11, 2024, 2:08 a.m. UTC
The prefix "SPL_" is not needed when using CONFIG_IS_ENABLED().

Fixes: 5ecf9b0b8a75 ("board: starfive: add StarFive VisionFive v2 board support")
Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
---
 board/starfive/visionfive2/spl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Heinrich Schuchardt Nov. 11, 2024, 7:13 a.m. UTC | #1
Am 11. November 2024 03:08:07 MEZ schrieb Hal Feng <hal.feng@starfivetech.com>:
>The prefix "SPL_" is not needed when using CONFIG_IS_ENABLED().
>
>Fixes: 5ecf9b0b8a75 ("board: starfive: add StarFive VisionFive v2 board support")
>Signed-off-by: Hal Feng <hal.feng@starfivetech.com>


Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>

>---
> board/starfive/visionfive2/spl.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
>diff --git a/board/starfive/visionfive2/spl.c b/board/starfive/visionfive2/spl.c
>index 38132ecccd..cf7f39d5c5 100644
>--- a/board/starfive/visionfive2/spl.c
>+++ b/board/starfive/visionfive2/spl.c
>@@ -110,7 +110,7 @@ void board_init_f(ulong dummy)
> 	}
> }
> 
>-#if CONFIG_IS_ENABLED(SPL_LOAD_FIT)
>+#if CONFIG_IS_ENABLED(LOAD_FIT)
> int board_fit_config_name_match(const char *name)
> {
> 	/* boot using first FIT config */
diff mbox series

Patch

diff --git a/board/starfive/visionfive2/spl.c b/board/starfive/visionfive2/spl.c
index 38132ecccd..cf7f39d5c5 100644
--- a/board/starfive/visionfive2/spl.c
+++ b/board/starfive/visionfive2/spl.c
@@ -110,7 +110,7 @@  void board_init_f(ulong dummy)
 	}
 }
 
-#if CONFIG_IS_ENABLED(SPL_LOAD_FIT)
+#if CONFIG_IS_ENABLED(LOAD_FIT)
 int board_fit_config_name_match(const char *name)
 {
 	/* boot using first FIT config */