aboutsummaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorRoman Stratiienko <r.stratiienko@gmail.com>2021-05-09 01:25:24 +0300
committerTom Rini <trini@konsulko.com>2022-01-28 10:11:54 -0500
commit51566bc8c37205d73f45ee97409063fedc1cdfd8 (patch)
treea36188bfa7064d9a54e2ab2ead4b10d62c73d809 /drivers
parent761a1786e125ce0e2f472f25f2b841d5f4e2f0cb (diff)
downloadu-boot-51566bc8c37205d73f45ee97409063fedc1cdfd8.zip
u-boot-51566bc8c37205d73f45ee97409063fedc1cdfd8.tar.gz
u-boot-51566bc8c37205d73f45ee97409063fedc1cdfd8.tar.bz2
fastboot: fix fastboot_set_reboot_flag()
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/fastboot/fb_common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/fastboot/fb_common.c b/drivers/fastboot/fb_common.c
index cbcc368..ef399d0 100644
--- a/drivers/fastboot/fb_common.c
+++ b/drivers/fastboot/fb_common.c
@@ -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",