aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/arm/plat-omap/common.c6
-rw-r--r--arch/arm/plat-omap/include/plat/board.h4
2 files changed, 4 insertions, 6 deletions
diff --git a/arch/arm/plat-omap/common.c b/arch/arm/plat-omap/common.c
index f04731820301..30c698e7a02d 100644
--- a/arch/arm/plat-omap/common.c
+++ b/arch/arm/plat-omap/common.c
@@ -49,17 +49,15 @@ static const void *get_config(u16 tag, size_t len, int skip, size_t *len_out)
49 return kinfo->data; 49 return kinfo->data;
50} 50}
51 51
52const void *__omap_get_config(u16 tag, size_t len, int nr) 52const void *__init __omap_get_config(u16 tag, size_t len, int nr)
53{ 53{
54 return get_config(tag, len, nr, NULL); 54 return get_config(tag, len, nr, NULL);
55} 55}
56EXPORT_SYMBOL(__omap_get_config);
57 56
58const void *omap_get_var_config(u16 tag, size_t *len) 57const void *__init omap_get_var_config(u16 tag, size_t *len)
59{ 58{
60 return get_config(tag, NO_LENGTH_CHECK, 0, len); 59 return get_config(tag, NO_LENGTH_CHECK, 0, len);
61} 60}
62EXPORT_SYMBOL(omap_get_var_config);
63 61
64void __init omap_reserve(void) 62void __init omap_reserve(void)
65{ 63{
diff --git a/arch/arm/plat-omap/include/plat/board.h b/arch/arm/plat-omap/include/plat/board.h
index 3cf4fa25ab3d..97126dfd2888 100644
--- a/arch/arm/plat-omap/include/plat/board.h
+++ b/arch/arm/plat-omap/include/plat/board.h
@@ -151,14 +151,14 @@ struct omap_board_config_kernel {
151 const void *data; 151 const void *data;
152}; 152};
153 153
154extern const void *__omap_get_config(u16 tag, size_t len, int nr); 154extern const void *__init __omap_get_config(u16 tag, size_t len, int nr);
155 155
156#define omap_get_config(tag, type) \ 156#define omap_get_config(tag, type) \
157 ((const type *) __omap_get_config((tag), sizeof(type), 0)) 157 ((const type *) __omap_get_config((tag), sizeof(type), 0))
158#define omap_get_nr_config(tag, type, nr) \ 158#define omap_get_nr_config(tag, type, nr) \
159 ((const type *) __omap_get_config((tag), sizeof(type), (nr))) 159 ((const type *) __omap_get_config((tag), sizeof(type), (nr)))
160 160
161extern const void *omap_get_var_config(u16 tag, size_t *len); 161extern const void *__init omap_get_var_config(u16 tag, size_t *len);
162 162
163extern struct omap_board_config_kernel *omap_board_config; 163extern struct omap_board_config_kernel *omap_board_config;
164extern int omap_board_config_size; 164extern int omap_board_config_size;