]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
prevent error message 'Can't set phandle'
authorLothar Waßmann <LW@KARO-electronics.de>
Fri, 11 Oct 2013 10:49:54 +0000 (12:49 +0200)
committerLothar Waßmann <LW@KARO-electronics.de>
Fri, 11 Oct 2013 10:49:54 +0000 (12:49 +0200)
board/karo/common/fdt.c

index 192e68816a4db9522e19ace6d55bbc420b5878e9..63fd2fe5c509ef90e769aa5253676e15ba73d286 100644 (file)
@@ -161,8 +161,8 @@ void karo_fdt_fixup_touchpanel(void *blob)
                                continue;
                }
                fdt_disable_tp_node(blob, karo_touchpanels[i]);
-               karo_set_fdtsize(blob);
        }
+       karo_set_fdtsize(blob);
 }
 
 void karo_fdt_fixup_usb_otg(void *blob, const char *node, const char *phy)
@@ -336,16 +336,12 @@ static int fdt_update_native_fb_mode(void *blob, int off)
        int ret;
        uint32_t ph;
 
+       ret = fdt_increase_size(blob, 32);
+       if (ret) {
+               printf("Warning: Failed to increase FDT size: %d\n", ret);
+       }
        debug("Creating phandle at offset %d\n", off);
        ph = fdt_create_phandle(blob, off);
-       if (!ph) {
-               ret = fdt_increase_size(blob, 512);
-               if (ret) {
-                       printf("Failed to increase FDT size: %d\n", ret);
-                       return ret;
-               }
-               ph = fdt_create_phandle(blob, off);
-       }
        if (!ph) {
                printf("Failed to create phandle for video timing\n");
                return -ENOMEM;