summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorWally Yeh <wally.yeh@atrustcorp.com>2014-09-25 23:00:16 +0800
committerPantelis Antoniou <panto@antoniou-consulting.com>2014-10-03 17:26:50 +0300
commitfa7b88519e9158cee2b0900d26c049f09f49f8c5 (patch)
tree3c2c5445589c270bba6fe12192baf2dc2ef47373 /common
parent786a27b7ec9efd1ebf50008050e3cff9ce458198 (diff)
downloadblackbird-obmc-uboot-fa7b88519e9158cee2b0900d26c049f09f49f8c5.tar.gz
blackbird-obmc-uboot-fa7b88519e9158cee2b0900d26c049f09f49f8c5.zip
cmd_mmc: fix bootpart-resize maxarg to 4
sub-command 'bootpart-resize' check for argc == 4, it will retrun CMD_RET_FAILURE when argc value not matched. but bootpart-resize's maxarg is 3, which means you never execute this sub-command successfully. fix it by change bootpart-resize maxarg to 4. Signed-off-by: wally.yeh <wally.yeh@atrustcorp.com> Cc: Wolfgang Denk <wd@denx.de> Cc: Pierre Aubert <p.aubert@staubli.com> Acked-by: Pantelis Antoniou <panto@antoniou-consulting.com>
Diffstat (limited to 'common')
-rw-r--r--common/cmd_mmc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/cmd_mmc.c b/common/cmd_mmc.c
index 1e40983c75..4286e26963 100644
--- a/common/cmd_mmc.c
+++ b/common/cmd_mmc.c
@@ -602,7 +602,7 @@ static cmd_tbl_t cmd_mmc[] = {
U_BOOT_CMD_MKENT(list, 1, 1, do_mmc_list, "", ""),
#ifdef CONFIG_SUPPORT_EMMC_BOOT
U_BOOT_CMD_MKENT(bootbus, 5, 0, do_mmc_bootbus, "", ""),
- U_BOOT_CMD_MKENT(bootpart-resize, 3, 0, do_mmc_boot_resize, "", ""),
+ U_BOOT_CMD_MKENT(bootpart-resize, 4, 0, do_mmc_boot_resize, "", ""),
U_BOOT_CMD_MKENT(partconf, 5, 0, do_mmc_partconf, "", ""),
U_BOOT_CMD_MKENT(rst-function, 3, 0, do_mmc_rst_func, "", ""),
#endif
OpenPOWER on IntegriCloud