projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
env: mmc/fat/ext4: make sure that the MMC sub-system is initialized before using it
[oweals/u-boot.git]
/
env
/
fat.c
diff --git
a/env/fat.c
b/env/fat.c
index e6bd1f915dc616aeaeee3016fef1c424da59baeb..19f260e881ac3e77f5d04e69aeb261691f780388 100644
(file)
--- a/
env/fat.c
+++ b/
env/fat.c
@@
-89,6
+89,9
@@
static int env_fat_load(void)
int dev, part;
int err;
+ if (!strcmp(CONFIG_ENV_FAT_INTERFACE, "mmc"))
+ mmc_initialize(NULL);
+
part = blk_get_device_part_str(CONFIG_ENV_FAT_INTERFACE,
CONFIG_ENV_FAT_DEVICE_AND_PART,
&dev_desc, &info, 1);