summaryrefslogtreecommitdiffstats
path: root/include/lmb.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2013-05-08 08:06:01 +0000
committerTom Rini <trini@ti.com>2013-05-14 15:37:25 -0400
commit13d06981a9829c9edcfd6f9f582d216fbaed95e5 (patch)
tree1e5df63856d117bc14acb5f669ac0dc405e91f06 /include/lmb.h
parent44d3a3066bc789b9a640e71322e593a9983023bb (diff)
downloadblackbird-obmc-uboot-13d06981a9829c9edcfd6f9f582d216fbaed95e5.tar.gz
blackbird-obmc-uboot-13d06981a9829c9edcfd6f9f582d216fbaed95e5.zip
image: Add device tree setup to image library
This seems to be a common function for several architectures, so create a common function rather than duplicating the code in each arch. Also make an attempt to avoid introducing #ifdefs in the new code, partly by removing useless #ifdefs around function declarations in the image.h header. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/lmb.h')
-rw-r--r--include/lmb.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/include/lmb.h b/include/lmb.h
index 5d1f4b624a..43082a393f 100644
--- a/include/lmb.h
+++ b/include/lmb.h
@@ -1,7 +1,6 @@
#ifndef _LINUX_LMB_H
#define _LINUX_LMB_H
#ifdef __KERNEL__
-#ifdef CONFIG_LMB
#include <asm/types.h>
/*
@@ -57,7 +56,6 @@ lmb_size_bytes(struct lmb_region *type, unsigned long region_nr)
void board_lmb_reserve(struct lmb *lmb);
void arch_lmb_reserve(struct lmb *lmb);
-#endif /* CONFIG_LMB */
#endif /* __KERNEL__ */
#endif /* _LINUX_LMB_H */
OpenPOWER on IntegriCloud