]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - common/cmd_mmc_spi.c
sniper: Fastboot support
[karo-tx-uboot.git] / common / cmd_mmc_spi.c
index 63fe3133771974a5ad23c945aa7dd0c7e3d61a6c..a2138b8650e90cc68a1c2dde5b808fe9caa7dc47 100644 (file)
@@ -72,13 +72,13 @@ static int do_mmc_spi(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
                printf("Failed to create MMC Device\n");
                return 1;
        }
-       printf("%s: %d at %u:%u hz %u mode %u\n", mmc->name, mmc->block_dev.dev,
+       printf("%s: %d at %u:%u hz %u mode %u\n", mmc->cfg->name, mmc->block_dev.dev,
               bus, cs, speed, mode);
+       mmc_init(mmc);
        return 0;
 
 usage:
-       cmd_usage(cmdtp);
-       return 1;
+       return CMD_RET_USAGE;
 }
 
 U_BOOT_CMD(