]> git.sur5r.net Git - u-boot/commit
[new uImage] rework error handling so common functions don't reset
authorKumar Gala <galak@kernel.crashing.org>
Thu, 28 Feb 2008 03:51:46 +0000 (21:51 -0600)
committerMarian Balakowicz <m8@semihalf.com>
Fri, 29 Feb 2008 11:32:50 +0000 (12:32 +0100)
commit274cea2bddbca10cdad7daa518951b75c44ef6bc
tree8978d23a1fbcbcc5811db1b1b2fc1351fa542665
parentd2bc095a639672def11d5d043b5688d0dbd692ec
[new uImage] rework error handling so common functions don't reset

Changed image_get_ramdisk() to just return NULL on error and have
get_ramdisk() propogate that error to the caller.  It's left to the
caller to call do_reset() if it wants to.

Also moved calling do_reset() in get_fdt() and fdt_relocate() on ppc
to a common location.  In the future we will change get_fdt() and
fdt_relocate() to return success/failure and not call do_reset() at all.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Acked-by: Marian Balakowicz <m8@semihalf.com>
common/image.c
include/image.h
lib_m68k/bootm.c
lib_ppc/bootm.c