diff options
author | Zhang Jiejing <jiejing.zhang@freescale.com> | 2011-12-21 16:46:15 +0800 |
---|---|---|
committer | Zhang Jiejing <jiejing.zhang@freescale.com> | 2011-12-21 19:13:37 +0800 |
commit | 34e34f3ccb62a3fc51ba102c5cd87f4bcb625f4d (patch) | |
tree | 98ee31669212627e567a322e309385f24b0dc2b0 /common | |
parent | 9a57b6eacb43d329c6a19872ba18b20f02af16af (diff) | |
download | u-boot-imx-34e34f3ccb62a3fc51ba102c5cd87f4bcb625f4d.zip u-boot-imx-34e34f3ccb62a3fc51ba102c5cd87f4bcb625f4d.tar.gz u-boot-imx-34e34f3ccb62a3fc51ba102c5cd87f4bcb625f4d.tar.bz2 |
ENGR00170768 Android: Fix fastboot can't used on MX6Q SL MMC1 device.
Fix fastboot can't used on mmc1 device on android.
caused by the mmc part number use strtoul but it need the partition number < 0 .
So this caused such error.
Fixed by change strtoul to strtol.
Signed-off-by: Zhang Jiejing <jiejing.zhang@freescale.com>
Diffstat (limited to 'common')
-rw-r--r-- | common/cmd_mmc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/cmd_mmc.c b/common/cmd_mmc.c index f1431d3..fb818f2 100644 --- a/common/cmd_mmc.c +++ b/common/cmd_mmc.c @@ -285,7 +285,7 @@ int do_mmcops(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]) dev = simple_strtoul(argv[2], NULL, 10); else if (argc == 4) { dev = (int)simple_strtoul(argv[2], NULL, 10); - part = (int)simple_strtoul(argv[3], NULL, 10); + part = (int)simple_strtol(argv[3], NULL, 10); if (part > PART_ACCESS_MASK) { printf("#part_num shouldn't be larger" " than %d\n", PART_ACCESS_MASK); |