diff mbox series

[v3,19/23] wandboard: use CONFIG_IS_ENABLED(SATA) instead of ifdef CONFIG_SATA

Message ID 20230313213146.1775650-20-troykiskyboundary@gmail.com
State Accepted
Commit 32af1c0b3f8add3f5bda08234d064ad93c7f4bf5
Delegated to: Tom Rini
Headers show
Series CONFIG_IS_ENABLED vs IS_ENABLED | expand

Commit Message

Troy Kisky March 13, 2023, 9:31 p.m. UTC
Prepare for linking setup_sata only when CONFIG_SATA/CONFIG_SPL_SATA
is defined.

Signed-off-by: Troy Kisky <troykiskyboundary@gmail.com>
---

(no changes since v2)

Changes in v2:
- new in series

 board/wandboard/wandboard.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

Comments

Tom Rini May 11, 2023, 7:31 p.m. UTC | #1
On Mon, Mar 13, 2023 at 02:31:41PM -0700, Troy Kisky wrote:

> Prepare for linking setup_sata only when CONFIG_SATA/CONFIG_SPL_SATA
> is defined.
> 
> Signed-off-by: Troy Kisky <troykiskyboundary@gmail.com>

Applied to u-boot/next, thanks!
diff mbox series

Patch

diff --git a/board/wandboard/wandboard.c b/board/wandboard/wandboard.c
index da995dd0f58..48914450a29 100644
--- a/board/wandboard/wandboard.c
+++ b/board/wandboard/wandboard.c
@@ -352,9 +352,8 @@  static void setup_display(void)
 int board_early_init_f(void)
 {
 	setup_iomux_uart();
-#ifdef CONFIG_SATA
-	setup_sata();
-#endif
+	if (CONFIG_IS_ENABLED(SATA))
+		setup_sata();
 
 	return 0;
 }