]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ARM: omap: move omap_get_config et al. to .init.text
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Wed, 9 Feb 2011 20:40:08 +0000 (21:40 +0100)
committerTony Lindgren <tony@atomide.com>
Thu, 10 Feb 2011 00:36:40 +0000 (16:36 -0800)
All callers of these functions live in .init.text, so these can go there,
too.  There they must not be exported anymore, this is no problem though,
as all callers are always built-in.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/plat-omap/common.c
arch/arm/plat-omap/include/plat/board.h

index f04731820301c921f8d65c3d394f570ee543b34a..30c698e7a02db7703257b093e1013f3123dffee1 100644 (file)
@@ -49,17 +49,15 @@ static const void *get_config(u16 tag, size_t len, int skip, size_t *len_out)
        return kinfo->data;
 }
 
-const void *__omap_get_config(u16 tag, size_t len, int nr)
+const void *__init __omap_get_config(u16 tag, size_t len, int nr)
 {
         return get_config(tag, len, nr, NULL);
 }
-EXPORT_SYMBOL(__omap_get_config);
 
-const void *omap_get_var_config(u16 tag, size_t *len)
+const void *__init omap_get_var_config(u16 tag, size_t *len)
 {
         return get_config(tag, NO_LENGTH_CHECK, 0, len);
 }
-EXPORT_SYMBOL(omap_get_var_config);
 
 void __init omap_reserve(void)
 {
index 3cf4fa25ab3d078a49e9488effaebf571fa128da..97126dfd2888d15392e6af018f2a343b922c4be5 100644 (file)
@@ -151,14 +151,14 @@ struct omap_board_config_kernel {
        const void *data;
 };
 
-extern const void *__omap_get_config(u16 tag, size_t len, int nr);
+extern const void *__init __omap_get_config(u16 tag, size_t len, int nr);
 
 #define omap_get_config(tag, type) \
        ((const type *) __omap_get_config((tag), sizeof(type), 0))
 #define omap_get_nr_config(tag, type, nr) \
        ((const type *) __omap_get_config((tag), sizeof(type), (nr)))
 
-extern const void *omap_get_var_config(u16 tag, size_t *len);
+extern const void *__init omap_get_var_config(u16 tag, size_t *len);
 
 extern struct omap_board_config_kernel *omap_board_config;
 extern int omap_board_config_size;