diff options
author | Grygorii Strashko <grygorii.strashko@ti.com> | 2017-01-31 15:37:03 -0600 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2017-02-08 15:56:32 -0500 |
commit | dbe7881de0c2bdab972b3cd35b503f69587edbfe (patch) | |
tree | caa8798cae09a9db08e10c16a0b04ff3e01e77e6 /cmd/bootm.c | |
parent | c10e0f5b38eb9aa707238edf794e6ff141cd45dc (diff) | |
download | u-boot-dbe7881de0c2bdab972b3cd35b503f69587edbfe.tar.gz u-boot-dbe7881de0c2bdab972b3cd35b503f69587edbfe.tar.bz2 u-boot-dbe7881de0c2bdab972b3cd35b503f69587edbfe.zip |
cmd: bootm: fix build when CONFIG_CMD_IMLS_NAND
Now when CONFIG_CMD_IMLS_NAND is enabled the u-boot build will fail,
because nand_read_skip_bad() function has been changed to accept more
parameters, hence fix it.
CC cmd/bootm.o
cmd/bootm.c: In function 'nand_imls_legacyimage':
cmd/bootm.c:390:8: error: too few arguments to function 'nand_read_skip_bad'
ret = nand_read_skip_bad(mtd, off, &len, imgdata);
^
In file included from cmd/bootm.c:18:0:
include/nand.h:101:5: note: declared here
int nand_read_skip_bad(struct mtd_info *mtd, loff_t offset, size_t *length,
^
LD drivers/block/built-in.o
Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'cmd/bootm.c')
-rw-r--r-- | cmd/bootm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/bootm.c b/cmd/bootm.c index a7e181d22c..953a57de33 100644 --- a/cmd/bootm.c +++ b/cmd/bootm.c @@ -390,7 +390,7 @@ static int nand_imls_legacyimage(struct mtd_info *mtd, int nand_dev, return -ENOMEM; } - ret = nand_read_skip_bad(mtd, off, &len, imgdata); + ret = nand_read_skip_bad(mtd, off, &len, NULL, mtd->size, imgdata); if (ret < 0 && ret != -EUCLEAN) { free(imgdata); return ret; @@ -430,7 +430,7 @@ static int nand_imls_fitimage(struct mtd_info *mtd, int nand_dev, loff_t off, return -ENOMEM; } - ret = nand_read_skip_bad(mtd, off, &len, imgdata); + ret = nand_read_skip_bad(mtd, off, &len, NULL, mtd->size, imgdata); if (ret < 0 && ret != -EUCLEAN) { free(imgdata); return ret; |