]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
fastboot: fix fastboot_set_reboot_flag()
authorRoman Stratiienko <r.stratiienko@gmail.com>
Sat, 8 May 2021 22:25:24 +0000 (01:25 +0300)
committerTom Rini <trini@konsulko.com>
Fri, 28 Jan 2022 15:11:54 +0000 (10:11 -0500)
In case CONFIG_FASTBOOT_FLASH_MMC_DEV == 0, compile-time condition
is not met and fastboot_set_reboot_flag() fails.

Fixes: a362ce214f03 ("fastboot: Implement generic fastboot_set_reboot_flag")
Signed-off-by: Roman Stratiienko <r.stratiienko@gmail.com>
Reviewed-by: Sean Anderson <seanga2@gmail.com>
Tested-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
drivers/fastboot/fb_common.c

index cbcc3683c471e5724a42dccbe9092878629ee3cb..ef399d0c4abbf55d1730ae6c012254ea68da98b9 100644 (file)
@@ -91,7 +91,7 @@ void fastboot_okay(const char *reason, char *response)
  */
 int __weak fastboot_set_reboot_flag(enum fastboot_reboot_reason reason)
 {
-#if CONFIG_IS_ENABLED(FASTBOOT_FLASH_MMC_DEV)
+#ifdef CONFIG_FASTBOOT_FLASH_MMC_DEV
        static const char * const boot_cmds[] = {
                [FASTBOOT_REBOOT_REASON_BOOTLOADER] = "bootonce-bootloader",
                [FASTBOOT_REBOOT_REASON_FASTBOOTD] = "boot-fastboot",