summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2013-05-08 08:06:02 +0000
committerTom Rini <trini@ti.com>2013-05-14 15:37:25 -0400
commitc19d13b030e93c6b30f61743e940da8d4418e714 (patch)
tree3cff800eb0fb598ba44d62e4adfb85f455db7431 /common
parent13d06981a9829c9edcfd6f9f582d216fbaed95e5 (diff)
downloadu-boot-imx-c19d13b030e93c6b30f61743e940da8d4418e714.zip
u-boot-imx-c19d13b030e93c6b30f61743e940da8d4418e714.tar.gz
u-boot-imx-c19d13b030e93c6b30f61743e940da8d4418e714.tar.bz2
arm: Refactor bootm to reduce #ifdefs
With fewer #ifdefs the code is more readable and more of the code is compiled for all boards. Add defines in the header file to control what features are enabled, and then use if() instead of #ifdef. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'common')
-rw-r--r--common/cmd_bootm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/cmd_bootm.c b/common/cmd_bootm.c
index b9b2979..dd6cafa 100644
--- a/common/cmd_bootm.c
+++ b/common/cmd_bootm.c
@@ -276,7 +276,7 @@ static int bootm_start(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]
#if defined(CONFIG_FIT)
} else if (images.fit_uname_os) {
ret = fit_image_get_entry(images.fit_hdr_os,
- images.fit_noffset_os, &images.ep);
+ images.fit_noffset_os, &images.ep);
if (ret) {
puts("Can't get entry point property!\n");
return 1;