]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
image: Use ENOENT instead of ENOMEDIUM for better compatibility
authorSimon Glass <sjg@chromium.org>
Sun, 16 Jun 2013 14:46:49 +0000 (07:46 -0700)
committerTom Rini <trini@ti.com>
Mon, 17 Jun 2013 13:56:42 +0000 (09:56 -0400)
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>
common/image-fit.c

index 7bf82d33cf7bce134b13613a445a5311e2988031..f40f1603f316b277646afb26bd1d9ee19b9adc14 100644 (file)
@@ -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;