From: Wolfgang Denk Date: Wed, 08 Dec 2010 23:54:49 +0100 Subject: [U-Boot] [PATCH] hwconfig: Fix handling of env_hwconfig, board_hwconfig, and cpu_hwconfig In-Reply-To: <1291154307-21377-1-git-send-email-galak@kernel.crashing.org> References: <1291154307-21377-1-git-send-email-galak@kernel.crashing.org> Message-ID: <20101208225449.34B09CF5CA6@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 <1291154307-21377-1-git-send-email-galak@kernel.crashing.org> you wrote: > The handling of env_hwconfig, board_hwconfig, and cpu_hwconfig got > broken when we removed the boards defining dummy board_hwconfig > & cpu_hwconfig values. > > We fix this by handling the various strings in priority order. If > hwconfig_parse returns NULL for a given string we check the next one > in order (env_hwconfig, board_hwconfig, followed by cpu_hwconfig). > > Signed-off-by: Kumar Gala > --- > common/hwconfig.c | 15 +++++++++------ > 1 files changed, 9 insertions(+), 6 deletions(-) Applied, thanks. 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 "To IBM, 'open' means there is a modicum of interoperability among some of their equipment." - Harv Masterson