summaryrefslogtreecommitdiff
path: root/board/wandboard
diff options
context:
space:
mode:
authorTroy Kisky <troykiskyboundary@gmail.com>2023-03-13 14:31:41 -0700
committerTom Rini <trini@konsulko.com>2023-05-10 16:45:42 -0400
commit32af1c0b3f8add3f5bda08234d064ad93c7f4bf5 (patch)
tree9203c4af9a97d93ff0b07a0baca7d5ac3bb9b2f0 /board/wandboard
parentff286fbc5153d0a15465faf0a8f1cc6f80dc33a8 (diff)
downloadu-boot-32af1c0b3f8add3f5bda08234d064ad93c7f4bf5.tar.gz
u-boot-32af1c0b3f8add3f5bda08234d064ad93c7f4bf5.tar.bz2
u-boot-32af1c0b3f8add3f5bda08234d064ad93c7f4bf5.zip
wandboard: use CONFIG_IS_ENABLED(SATA) instead of ifdef CONFIG_SATA
Prepare for linking setup_sata only when CONFIG_SATA/CONFIG_SPL_SATA is defined. Signed-off-by: Troy Kisky <troykiskyboundary@gmail.com>
Diffstat (limited to 'board/wandboard')
-rw-r--r--board/wandboard/wandboard.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/board/wandboard/wandboard.c b/board/wandboard/wandboard.c
index da995dd0f5..48914450a2 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;
}