From: Thomas Chou <thomas@wytron.com.tw>
Date: Sun, 17 Apr 2011 21:00:46 +0000 (+0000)
Subject: mmc_spi: add mmc_init call
X-Git-Tag: v2025.01-rc5-pxa1908~19523^2~4
X-Git-Url: http://git.dujemihanovic.xyz/img/%7B%7B%20.RelPermalink%20%7D%7D?a=commitdiff_plain;h=28df15e0234a773cfec98c2775915abe1472db3c;p=u-boot.git

mmc_spi: add mmc_init call

As Andy Fleming suggested, we can call mmc_init() in mmc_spi command.
So that we don't need to run mmcinfo command next.

Signed-off-by: Thomas Chou <thomas@wytron.com.tw>
---

diff --git a/common/cmd_mmc_spi.c b/common/cmd_mmc_spi.c
index 63fe313377..cfd0fb1136 100644
--- a/common/cmd_mmc_spi.c
+++ b/common/cmd_mmc_spi.c
@@ -74,6 +74,7 @@ static int do_mmc_spi(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
 	}
 	printf("%s: %d at %u:%u hz %u mode %u\n", mmc->name, mmc->block_dev.dev,
 	       bus, cs, speed, mode);
+	mmc_init(mmc);
 	return 0;
 
 usage: