]> git.sur5r.net Git - u-boot/commit
hwconfig: Fix handling of env_hwconfig, board_hwconfig, and cpu_hwconfig
authorKumar Gala <galak@kernel.crashing.org>
Tue, 30 Nov 2010 21:58:27 +0000 (15:58 -0600)
committerWolfgang Denk <wd@denx.de>
Thu, 9 Dec 2010 10:01:13 +0000 (11:01 +0100)
commitbb141079d34bebb073c5b0566313e1441973ec01
treed9a792cb775390f7ced1948454155b8fee7c2c22
parent296cae732b0dbe374abc9b26fed6f73588b9d1e2
hwconfig: Fix handling of env_hwconfig, board_hwconfig, and cpu_hwconfig

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 <galak@kernel.crashing.org>
common/hwconfig.c