diff options
Diffstat (limited to 'common/cmd_mmc.c')
-rw-r--r-- | common/cmd_mmc.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/common/cmd_mmc.c b/common/cmd_mmc.c index 0e3393b..421482e 100644 --- a/common/cmd_mmc.c +++ b/common/cmd_mmc.c @@ -127,9 +127,10 @@ int do_mmcinfo (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]) mmc = find_mmc_device(dev_num); if (mmc) { - mmc_init(mmc); - - print_mmcinfo(mmc); + if (mmc_init(mmc)) + puts("MMC card init failed!\n"); + else + print_mmcinfo(mmc); } return 0; |