[U-Boot] [PATCH] mmc_spi: add mmc_init call
    Thomas Chou 
    thomas at wytron.com.tw
       
    Mon Apr 18 09:00:46 CEST 2011
    
    
  
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 at wytron.com.tw>
---
for u-boot.
 common/cmd_mmc_spi.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/common/cmd_mmc_spi.c b/common/cmd_mmc_spi.c
index 63fe313..cfd0fb1 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:
-- 
1.7.1.86.g0e460
    
    
More information about the U-Boot
mailing list