summaryrefslogtreecommitdiff
path: root/env/fat.c
diff options
context:
space:
mode:
Diffstat (limited to 'env/fat.c')
-rw-r--r--env/fat.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/env/fat.c b/env/fat.c
index 19f260e881..884eeb8c5f 100644
--- a/env/fat.c
+++ b/env/fat.c
@@ -89,8 +89,10 @@ static int env_fat_load(void)
int dev, part;
int err;
+#ifdef CONFIG_MMC
if (!strcmp(CONFIG_ENV_FAT_INTERFACE, "mmc"))
mmc_initialize(NULL);
+#endif
part = blk_get_device_part_str(CONFIG_ENV_FAT_INTERFACE,
CONFIG_ENV_FAT_DEVICE_AND_PART,