From: Troy Kisky Date: Mon, 13 Mar 2023 21:31:41 +0000 (-0700) Subject: wandboard: use CONFIG_IS_ENABLED(SATA) instead of ifdef CONFIG_SATA X-Git-Url: http://git.dujemihanovic.xyz/html/%7B%7B%20.Permalink%20%7D%7D?a=commitdiff_plain;h=32af1c0b3f8add3f5bda08234d064ad93c7f4bf5;p=u-boot.git 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 --- 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; }