summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2013-06-16 07:46:49 -0700
committerTom Rini <trini@ti.com>2013-06-17 09:56:42 -0400
commit2f998071254d566c71c34ef013aef1d9d0ec0fa3 (patch)
treedab50564cd58050116acb52c0c27717139a88a42 /common
parentdfdb3d37dd0fa8bdabdf7b5ffb597af470e74621 (diff)
downloadu-boot-imx-2f998071254d566c71c34ef013aef1d9d0ec0fa3.zip
u-boot-imx-2f998071254d566c71c34ef013aef1d9d0ec0fa3.tar.gz
u-boot-imx-2f998071254d566c71c34ef013aef1d9d0ec0fa3.tar.bz2
image: Use ENOENT instead of ENOMEDIUM for better compatibility
This error may not be defined on some platforms such as MacOS so host compilation will fail. Use one of the more common errors instead. Signed-off-by: Simon Glass <sjg@chromium.org> Tested-by: Andreas Bießmann <andreas.devel@googlemail.com> Tested-by: Lubomir Popov <lpopov@mm-sol.com>
Diffstat (limited to 'common')
-rw-r--r--common/image-fit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/image-fit.c b/common/image-fit.c
index 7bf82d3..f40f160 100644
--- a/common/image-fit.c
+++ b/common/image-fit.c
@@ -1557,7 +1557,7 @@ int fit_image_load(bootm_headers_t *images, const char *prop_name, ulong addr,
if (fit_image_get_data(fit, noffset, &buf, &size)) {
printf("Could not find %s subimage data!\n", prop_name);
bootstage_error(bootstage_id + BOOTSTAGE_SUB_GET_DATA);
- return -ENOMEDIUM;
+ return -ENOENT;
}
len = (ulong)size;