]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
mmc_spi: add mmc_init call
authorThomas Chou <thomas@wytron.com.tw>
Sun, 17 Apr 2011 21:00:46 +0000 (21:00 +0000)
committerAndy Fleming <afleming@freescale.com>
Fri, 29 Apr 2011 08:20:01 +0000 (03:20 -0500)
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>
common/cmd_mmc_spi.c

index 63fe3133771974a5ad23c945aa7dd0c7e3d61a6c..cfd0fb11367625dbd21f4fcc395795289cdcba2b 100644 (file)
@@ -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: