From: Wolfgang Denk Date: Tue, 26 Aug 2008 23:48:25 +0200 Subject: [U-Boot] [PATCH 15/15] bootm: refactor do_reset and os boot function args In-Reply-To: <1218806685-3615-15-git-send-email-galak@kernel.crashing.org> References: <1218806685-3615-1-git-send-email-galak@kernel.crashing.org> <1218806685-3615-2-git-send-email-galak@kernel.crashing.org> <1218806685-3615-3-git-send-email-galak@kernel.crashing.org> <1218806685-3615-4-git-send-email-galak@kernel.crashing.org> <1218806685-3615-5-git-send-email-galak@kernel.crashing.org> <1218806685-3615-6-git-send-email-galak@kernel.crashing.org> <1218806685-3615-7-git-send-email-galak@kernel.crashing.org> <1218806685-3615-8-git-send-email-galak@kernel.crashing.org> <1218806685-3615-9-git-send-email-galak@kernel.crashing.org> <1218806685-3615-10-git-send-email-galak@kernel.crashing.org> <1218806685-3615-11-git-send-email-galak@kernel.crashing.org> <1218806685-3615-12-git-send-email-galak@kernel.crashing.org> <1218806685-3615-13-git-send-email-galak@kernel.crashing.org> <1218806685-3615-14-git-send-email-galak@kernel.crashing.org> <1218806685-3615-15-git-send-email-galak@kernel.crashing.org> Message-ID: <20080826214825.921DB248C3@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Kumar Gala, In message <1218806685-3615-15-git-send-email-galak@kernel.crashing.org> you wrote: > There is no need for each OS specific function to call do_reset() > we can just do it once in bootm. This means its feasible on an > error for the os boot function to return. > > Also, remove passing in cmd_tbl_t as its not needed by the OS > boot functions. flag isn't currently used but might be in the future > so we left it alone. > > Signed-off-by: Kumar Gala > --- > common/cmd_bootm.c | 67 +++++++++++++++++++++++++----------------------- > lib_arm/bootm.c | 10 +----- > lib_avr32/bootm.c | 10 +----- > lib_blackfin/bootm.c | 11 ++----- > lib_i386/bootm.c | 9 +----- > lib_m68k/bootm.c | 10 +----- > lib_microblaze/bootm.c | 10 +----- > lib_mips/bootm.c | 12 +------- > lib_nios/bootm.c | 4 +- > lib_nios2/bootm.c | 9 +----- > lib_ppc/bootm.c | 11 +++----- > lib_sh/bootm.c | 9 +----- > lib_sparc/bootm.c | 7 +--- > 13 files changed, 62 insertions(+), 117 deletions(-) Applied, thanks. Wow. What a patch series... Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de In an organization, each person rises to the level of his own incom- petency - The Peter Principle