mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-28 10:01:32 +00:00
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>
This commit is contained in:
parent
c10e0f5b38
commit
dbe7881de0
1 changed files with 2 additions and 2 deletions
|
@ -390,7 +390,7 @@ static int nand_imls_legacyimage(struct mtd_info *mtd, int nand_dev,
|
||||||
return -ENOMEM;
|
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) {
|
if (ret < 0 && ret != -EUCLEAN) {
|
||||||
free(imgdata);
|
free(imgdata);
|
||||||
return ret;
|
return ret;
|
||||||
|
@ -430,7 +430,7 @@ static int nand_imls_fitimage(struct mtd_info *mtd, int nand_dev, loff_t off,
|
||||||
return -ENOMEM;
|
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) {
|
if (ret < 0 && ret != -EUCLEAN) {
|
||||||
free(imgdata);
|
free(imgdata);
|
||||||
return ret;
|
return ret;
|
||||||
|
|
Loading…
Add table
Reference in a new issue