diff --git a/common/spl/spl_mmc.c b/common/spl/spl_mmc.c index 150886c1a8..90935aab1a 100644 --- a/common/spl/spl_mmc.c +++ b/common/spl/spl_mmc.c @@ -68,7 +68,7 @@ int mmc_load_image_raw_sector(struct spl_image_info *spl_image, sizeof(struct image_header)); int ret = 0; -#if !defined(CONFIG_SPL_RAW_IMAGE_ARM_TRUSTED_FIRMWARE) +#if !defined(CONFIG_SPL_RAW_IMAGE_ARM_TRUSTED_FIRMWARE) || defined(CONFIG_SPL_LOAD_FIT) unsigned long count = 0; /* read image header to find the image size & load address */