Correct SPL uses of FASTBOOT
authorSimon Glass <sjg@chromium.org>
Mon, 6 Feb 2023 00:54:10 +0000 (17:54 -0700)
committerTom Rini <trini@konsulko.com>
Fri, 10 Feb 2023 12:41:41 +0000 (07:41 -0500)
This converts 3 usages of this option to the non-SPL form, since there is
no SPL_FASTBOOT defined in Kconfig

Signed-off-by: Simon Glass <sjg@chromium.org>
arch/arm/mach-rockchip/board.c
board/ti/am57xx/board.c
board/ti/dra7xx/evm.c

index 6e05a8f..ebffb6c 100644 (file)
@@ -306,7 +306,7 @@ int board_usb_init(int index, enum usb_init_type init)
 
 #endif /* CONFIG_USB_GADGET */
 
-#if CONFIG_IS_ENABLED(FASTBOOT)
+#if IS_ENABLED(CONFIG_FASTBOOT)
 int fastboot_set_reboot_flag(enum fastboot_reboot_reason reason)
 {
        if (reason != FASTBOOT_REBOOT_REASON_BOOTLOADER)
index 0e57ee5..9ea507a 100644 (file)
@@ -1172,7 +1172,7 @@ int board_fit_config_name_match(const char *name)
 }
 #endif
 
-#if CONFIG_IS_ENABLED(FASTBOOT) && !CONFIG_IS_ENABLED(ENV_IS_NOWHERE)
+#if IS_ENABLED(CONFIG_FASTBOOT) && !CONFIG_IS_ENABLED(ENV_IS_NOWHERE)
 int fastboot_set_reboot_flag(enum fastboot_reboot_reason reason)
 {
        if (reason != FASTBOOT_REBOOT_REASON_BOOTLOADER)
index 568c8fb..a8a216d 100644 (file)
@@ -1049,7 +1049,7 @@ int board_fit_config_name_match(const char *name)
 }
 #endif
 
-#if CONFIG_IS_ENABLED(FASTBOOT) && !CONFIG_IS_ENABLED(ENV_IS_NOWHERE)
+#if IS_ENABLED(CONFIG_FASTBOOT) && !CONFIG_IS_ENABLED(ENV_IS_NOWHERE)
 int fastboot_set_reboot_flag(enum fastboot_reboot_reason reason)
 {
        if (reason != FASTBOOT_REBOOT_REASON_BOOTLOADER)