diff options
author | Simon Glass <sjg@chromium.org> | 2013-05-16 13:53:23 +0000 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2013-06-04 16:06:31 -0400 |
commit | 53f375fa819c656eec32ac779456a612836ae006 (patch) | |
tree | 83f817f2a106ae228b4775bb77bc02d466490b62 /common/image-fit.c | |
parent | a51ec63b85edbc6f8987069d0a60eec09d4f35c8 (diff) | |
download | u-boot-imx-53f375fa819c656eec32ac779456a612836ae006.zip u-boot-imx-53f375fa819c656eec32ac779456a612836ae006.tar.gz u-boot-imx-53f375fa819c656eec32ac779456a612836ae006.tar.bz2 |
image: Use fit_image_load() to load FDT
Use the new common code to load a flat device tree. Also fix up a few casts
so that this code works with sandbox. Other than that the functionality
should not change.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'common/image-fit.c')
-rw-r--r-- | common/image-fit.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/common/image-fit.c b/common/image-fit.c index 16fb196..15c92be 100644 --- a/common/image-fit.c +++ b/common/image-fit.c @@ -1371,25 +1371,6 @@ int fit_conf_get_kernel_node(const void *fit, int noffset) } /** - * fit_conf_get_fdt_node - get fdt image node offset that corresponds to - * a given configuration - * @fit: pointer to the FIT format image header - * @noffset: configuration node offset - * - * fit_conf_get_fdt_node() retrives fdt image node unit name from - * configuration FIT_KERNEL_PROP property and translates it to the node - * offset. - * - * returns: - * image node offset when found (>=0) - * negative number on failure (FDT_ERR_* code) - */ -int fit_conf_get_fdt_node(const void *fit, int noffset) -{ - return fit_conf_get_prop_node(fit, noffset, FIT_FDT_PROP); -} - -/** * fit_conf_print - prints out the FIT configuration details * @fit: pointer to the FIT format image header * @noffset: offset of the configuration node |