summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--common/spl/spl_sata.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/common/spl/spl_sata.c b/common/spl/spl_sata.c
index 2fb46108a5..f0af9f38d1 100644
--- a/common/spl/spl_sata.c
+++ b/common/spl/spl_sata.c
@@ -53,9 +53,13 @@ static int spl_sata_load_image(struct spl_image_info *spl_image,
CONFIG_SYS_SATA_FAT_BOOT_PARTITION))
#endif
{
- err = spl_load_image_fat(spl_image, stor_dev,
+ err = -ENOSYS;
+
+ if (IS_ENABLED(CONFIG_SPL_FS_FAT)) {
+ err = spl_load_image_fat(spl_image, stor_dev,
CONFIG_SYS_SATA_FAT_BOOT_PARTITION,
- CONFIG_SPL_FS_LOAD_PAYLOAD_NAME);
+ CONFIG_SPL_FS_LOAD_PAYLOAD_NAME);
+ }
}
if (err) {
puts("Error loading sata device\n");