]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
wandboard: use CONFIG_IS_ENABLED(SATA) instead of ifdef CONFIG_SATA
authorTroy Kisky <troykiskyboundary@gmail.com>
Mon, 13 Mar 2023 21:31:41 +0000 (14:31 -0700)
committerTom Rini <trini@konsulko.com>
Wed, 10 May 2023 20:45:42 +0000 (16:45 -0400)
Prepare for linking setup_sata only when CONFIG_SATA/CONFIG_SPL_SATA
is defined.

Signed-off-by: Troy Kisky <troykiskyboundary@gmail.com>
board/wandboard/wandboard.c

index da995dd0f582aa9ae9d05ea4e379519dc0a17ea1..48914450a294061ca515328b5e3a1aa95c895fcc 100644 (file)
@@ -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;
 }