1
0
mirror of https://xff.cz/git/u-boot/ synced 2025-09-01 08:42:12 +02:00

dm: mmc: Don't re-init when accessing environment

With driver model MMC is probed automatically when needed. We should not
re-init MMC each time.

Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Simon Glass
2017-04-23 20:02:04 -06:00
parent 05cbeb7c36
commit e7017a3c7d

View File

@@ -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";