summaryrefslogtreecommitdiff
path: root/common/env_mmc.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/env_mmc.c')
-rw-r--r--common/env_mmc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/common/env_mmc.c b/common/env_mmc.c
index 45d95a1..404de85 100644
--- a/common/env_mmc.c
+++ b/common/env_mmc.c
@@ -121,9 +121,10 @@ static const char *init_mmc_for_env(struct mmc *mmc)
if (!mmc)
return "!No MMC card found";
+#ifndef CONFIG_BLK
if (mmc_init(mmc))
return "!MMC init failed";
-
+#endif
if (mmc_set_env_part(mmc))
return "!MMC partition switch failed";