]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
solidrun: mx6cuboxi: use CONFIG_IS_ENABLED(SATA) instead of ifdef CONFIG_SATA
authorTroy Kisky <troykiskyboundary@gmail.com>
Mon, 13 Mar 2023 21:31:40 +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>
Reviewed-by: Simon Glass <sjg@chromium.org>
board/solidrun/mx6cuboxi/mx6cuboxi.c

index cb14c2f30c9f4c333a22bac1ab9ac4e80760a15b..6fa5cf4d27d773c18fa3b038096d0ee3248cee42 100644 (file)
@@ -275,9 +275,8 @@ int board_early_init_f(void)
 {
        setup_iomux_uart();
 
-#ifdef CONFIG_SATA
-       setup_sata();
-#endif
+       if (CONFIG_IS_ENABLED(SATA))
+               setup_sata();
        setup_fec();
 
        return 0;