From 53f375fa819c656eec32ac779456a612836ae006 Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Thu, 16 May 2013 13:53:23 +0000 Subject: 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 --- common/image-fit.c | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'common/image-fit.c') diff --git a/common/image-fit.c b/common/image-fit.c index 16fb196534..15c92be4d7 100644 --- a/common/image-fit.c +++ b/common/image-fit.c @@ -1370,25 +1370,6 @@ int fit_conf_get_kernel_node(const void *fit, int noffset) return fit_conf_get_prop_node(fit, noffset, FIT_KERNEL_PROP); } -/** - * 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 -- cgit v1.2.3