summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Rini <trini@ti.com>2014-12-03 13:19:34 -0500
committerTom Rini <trini@ti.com>2014-12-03 13:19:34 -0500
commitf0c6e1c31b94f193047619b6adf67c2d792b659e (patch)
treef5d7f6e7b07fc173c9dafe324c92cb3b83f90631
parent88342103cccf73b39c764bfb1473e7bf29b52b88 (diff)
downloadu-boot-imx-f0c6e1c31b94f193047619b6adf67c2d792b659e.zip
u-boot-imx-f0c6e1c31b94f193047619b6adf67c2d792b659e.tar.gz
u-boot-imx-f0c6e1c31b94f193047619b6adf67c2d792b659e.tar.bz2
Revert "image-fdt: boot_get_fdt() return value when no DTB exists"
It has been found that this change breaks the case of an appended device tree file, so for the problem in question some other solution must be found. This reverts commit c6150aaf2f2745141a7c2ceded58d7efbfeace7d. Reported-by: Bill Pringlemeir <bpringlemeir@nbsps.com> Reported-by: Pantelis Antoniou <panto@antoniou-consulting.com> Confirmed-by: Bill Pringlemeir <bpringlemeir@nbsps.com> Signed-off-by: Tom Rini <trini@ti.com>
-rw-r--r--common/image-fdt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/image-fdt.c b/common/image-fdt.c
index 1d76bd6..8db3ccb 100644
--- a/common/image-fdt.c
+++ b/common/image-fdt.c
@@ -413,11 +413,11 @@ int boot_get_fdt(int flag, int argc, char * const argv[], uint8_t arch,
}
} else {
debug("## No Flattened Device Tree\n");
- goto error;
+ return 0;
}
} else {
debug("## No Flattened Device Tree\n");
- goto error;
+ return 0;
}
*of_flat_tree = fdt_blob;