diff options
author | Tom Rini <trini@konsulko.com> | 2015-07-25 09:04:18 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2015-07-25 09:04:18 -0400 |
commit | 26473945ad6667183296e7edee2a65edf31bb6f7 (patch) | |
tree | ceb27f9307dbc86e20a5a9eb392c786e2fee5025 /drivers/mmc/mmc.c | |
parent | 6f4e050639241218987541f4729172e4e0e2ff31 (diff) | |
parent | 7f7409ba6ab937b73f16bac8d83e215db86ace3d (diff) |
Merge branch 'master' of http://git.denx.de/u-boot-sunxi
Diffstat (limited to 'drivers/mmc/mmc.c')
-rw-r--r-- | drivers/mmc/mmc.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c index da47037a306..f12546ac519 100644 --- a/drivers/mmc/mmc.c +++ b/drivers/mmc/mmc.c @@ -1762,6 +1762,11 @@ static void do_preinit(void) int mmc_initialize(bd_t *bis) { + static int initialized = 0; + if (initialized) /* Avoid initializing mmc multiple times */ + return 0; + initialized = 1; + INIT_LIST_HEAD (&mmc_devices); cur_dev_num = 0; |