ARM: omap: move omap_board_config_kernel to .init.data
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Wed, 9 Feb 2011 20:40:09 +0000 (21:40 +0100)
committerTony Lindgren <tony@atomide.com>
Thu, 10 Feb 2011 00:36:41 +0000 (16:36 -0800)
This variable is only assigned in __init functions and never used later.

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

index 30c698e7a02db7703257b093e1013f3123dffee1..d9f10a31e6042df965be23d899111de230bb493f 100644 (file)
 
 #define NO_LENGTH_CHECK 0xffffffff
 
-struct omap_board_config_kernel *omap_board_config;
+struct omap_board_config_kernel *omap_board_config __initdata;
 int omap_board_config_size;
 
-static const void *get_config(u16 tag, size_t len, int skip, size_t *len_out)
+static const void *__init get_config(u16 tag, size_t len,
+               int skip, size_t *len_out)
 {
        struct omap_board_config_kernel *kinfo = NULL;
        int i;