提交 8fd01b8f 编写于 作者: M Michael Jones 提交者: Andy Fleming

mmc: rescan fails on empty slot

Fail in 'mmc rescan' if mmc_init() returns error
Signed-off-by: NMichael Jones <michael.jones@matrix-vision.de>
Acked-by: NAndy Fleming <afleming@freescale.com>
上级 c310fc84
......@@ -173,9 +173,11 @@ int do_mmcops(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
}
mmc->has_init = 0;
mmc_init(mmc);
return 0;
if (mmc_init(mmc))
return 1;
else
return 0;
} else if (strncmp(argv[1], "part", 4) == 0) {
block_dev_desc_t *mmc_dev;
struct mmc *mmc = find_mmc_device(curr_device);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册