common: Drop log.h from common header
[oweals/u-boot.git] / lib / optee / optee.c
index c883c498e1d4ce80f0d59d219caf9af503ee93a9..e59b5766e7283f8f6c17a114576cead82ef8a710 100644 (file)
@@ -5,6 +5,8 @@
  */
 
 #include <common.h>
+#include <image.h>
+#include <log.h>
 #include <malloc.h>
 #include <linux/libfdt.h>
 #include <tee/optee.h>
@@ -91,7 +93,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);