From 4651800d51f7714c7e54c51af52a8ff5ee4461de Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Thu, 16 May 2013 13:53:25 +0000 Subject: image: Use fit_image_load() to load kernel Use the new common code to load a kernel. 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 15c92be4d7..589f53dbb5 100644 --- a/common/image-fit.c +++ b/common/image-fit.c @@ -1351,25 +1351,6 @@ int fit_conf_get_prop_node(const void *fit, int noffset, return fit_image_get_node(fit, uname); } -/** - * fit_conf_get_kernel_node - get kernel image node offset that corresponds to - * a given configuration - * @fit: pointer to the FIT format image header - * @noffset: configuration node offset - * - * fit_conf_get_kernel_node() retrives kernel 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_kernel_node(const void *fit, int noffset) -{ - return fit_conf_get_prop_node(fit, noffset, FIT_KERNEL_PROP); -} - /** * fit_conf_print - prints out the FIT configuration details * @fit: pointer to the FIT format image header -- cgit v1.2.1