]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
karo: fdt: print error message when fdt_setprop_cell() fails
authorLothar Waßmann <LW@KARO-electronics.de>
Mon, 7 Oct 2013 12:27:43 +0000 (14:27 +0200)
committerLothar Waßmann <LW@KARO-electronics.de>
Mon, 7 Oct 2013 12:27:43 +0000 (14:27 +0200)
board/karo/common/fdt.c

index 04273208e776baa028468b1cfa72beda9fe93869..352c85c85d420a4876850af71efaf8ebda5c9733 100644 (file)
@@ -358,6 +358,8 @@ static int fdt_update_native_fb_mode(void *blob, int off)
                return off;
        debug("parent offset=%06x\n", off);
        ret = fdt_setprop_cell(blob, off, "native-mode", ph);
+       if (ret)
+               printf("Failed to set property 'native-mode': %d\n", ret);
        return ret;
 }