]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
ppc4xx: Canyonlands: Remove unnecessary FDT warning upon DTB fixup
authorStefan Roese <sr@denx.de>
Mon, 22 Sep 2008 14:10:43 +0000 (16:10 +0200)
committerWolfgang Denk <wd@denx.de>
Mon, 22 Sep 2008 21:17:31 +0000 (23:17 +0200)
Depending on the configuration jumper "SATA SELECT", U-Boot disabled
either one PCIe node or the SATA node in the device tree blob. This
patch removes the unnecessary and even confusing warning, when the node
is not found at all.

Signed-off-by: Stefan Roese <sr@denx.de>
board/amcc/canyonlands/canyonlands.c

index e9eba49c4bab86b02074c2967135369499430c9a..47667eeec39964f5ca1fcf5af21e648d4559d3e1 100644 (file)
@@ -460,12 +460,8 @@ void ft_board_setup(void *blob, bd_t *bd)
                 * node in the device tree, so that Linux doesn't initialize
                 * it.
                 */
-               rc = fdt_find_and_setprop(blob, "/plb/pciex@d00000000", "status",
-                                         "disabled", sizeof("disabled"), 1);
-               if (rc) {
-                       printf("Unable to update property status in PCIe node, err=%s\n",
-                              fdt_strerror(rc));
-               }
+               fdt_find_and_setprop(blob, "/plb/pciex@d00000000", "status",
+                                    "disabled", sizeof("disabled"), 1);
        }
 
        if (gd->board_type == BOARD_CANYONLANDS_PCIE) {
@@ -474,12 +470,8 @@ void ft_board_setup(void *blob, bd_t *bd)
                 * node in the device tree, so that Linux doesn't initialize
                 * it.
                 */
-               rc = fdt_find_and_setprop(blob, "/plb/sata@bffd1000", "status",
-                                         "disabled", sizeof("disabled"), 1);
-               if (rc) {
-                       printf("Unable to update property status in PCIe node, err=%s\n",
-                              fdt_strerror(rc));
-               }
+               fdt_find_and_setprop(blob, "/plb/sata@bffd1000", "status",
+                                    "disabled", sizeof("disabled"), 1);
        }
 }
 #endif /* defined(CONFIG_OF_LIBFDT) && defined(CONFIG_OF_BOARD_SETUP) */