]> git.karo-electronics.de Git - karo-tx-uboot.git/blobdiff - common/fdt_support.c
linux/kernel.h: sync min, max, min3, max3 macros with Linux
[karo-tx-uboot.git] / common / fdt_support.c
index 3f641566b977aff76275656c86093051d2b1217c..2d3c3870b19a3d42f0edb0e4f1f9c88272072b1e 100644 (file)
@@ -1199,7 +1199,8 @@ int fdt_node_offset_by_compat_reg(void *blob, const char *compat,
  */
 int fdt_alloc_phandle(void *blob)
 {
-       int offset, phandle = 0;
+       int offset;
+       uint32_t phandle = 0;
 
        for (offset = fdt_next_node(blob, -1, NULL); offset >= 0;
             offset = fdt_next_node(blob, offset, NULL)) {