[U-Boot] [U-Boot,3/3] bootm: use genimg_get_kernel_addr()

Tom Rini trini at ti.com
Mon Aug 11 00:21:35 CEST 2014


On Thu, Jul 31, 2014 at 05:40:00PM -0700, Bryan Wu wrote:

> Use the new API which is originally taken out from boot_get_kernel
> of bootm.c
> 
> Signed-off-by: Bryan Wu <pengw at nvidia.com>
> Tested-by: Stephen Warren <swarren at nvidia.com>
> Reviewed-by: Stephen Warren <swarren at nvidia.com>

After doing the following to fix warnings:
diff --git a/common/bootm.c b/common/bootm.c
index aee68cd..76d811c 100644
--- a/common/bootm.c
+++ b/common/bootm.c
@@ -789,9 +789,9 @@ static const void *boot_get_kernel(cmd_tbl_t *cmdtp, int flag, int argc,
 #if defined(CONFIG_FIT)
 	case IMAGE_FORMAT_FIT:
 		if (!fit_parse_conf(argv[0], load_addr, &img_addr,
-					fit_uname_config))
+					&fit_uname_config))
 			fit_parse_subimage(argv[0], load_addr, &img_addr,
-					fit_uname_kernel);
+					&fit_uname_kernel);
 		os_noffset = fit_image_load(images, img_addr,
 				&fit_uname_kernel, &fit_uname_config,
 				IH_ARCH_DEFAULT, IH_TYPE_KERNEL,
Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20140810/838245b3/attachment.pgp>


More information about the U-Boot mailing list