imx: Makefile: added missing ahab.o
[oweals/u-boot.git] / lib / optee / optee.c
index c883c498e1d4ce80f0d59d219caf9af503ee93a9..d4355c6d0337781f25f0fc157100653f26ce0831 100644 (file)
@@ -5,6 +5,7 @@
  */
 
 #include <common.h>
+#include <image.h>
 #include <malloc.h>
 #include <linux/libfdt.h>
 #include <tee/optee.h>
@@ -91,7 +92,7 @@ static int optee_copy_firmware_node(const void *old_blob, void *fdt_blob)
 
        offs = fdt_add_subnode(fdt_blob, offs, "optee");
        if (offs < 0)
-               return ret;
+               return offs;
 
        /* copy the compatible property */
        prop = fdt_getprop(old_blob, old_offs, "compatible", &len);