From: Simon Glass Date: Sun, 16 Jun 2013 14:46:49 +0000 (-0700) Subject: image: Use ENOENT instead of ENOMEDIUM for better compatibility X-Git-Url: http://git.dujemihanovic.xyz/img/sics.gif?a=commitdiff_plain;h=2f998071254d566c71c34ef013aef1d9d0ec0fa3;p=u-boot.git 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 Tested-by: Andreas Bießmann Tested-by: Lubomir Popov --- diff --git a/common/image-fit.c b/common/image-fit.c index 7bf82d33cf..f40f1603f3 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;