Skip to content

Commit

Permalink
ARM: omap: move omap_board_config_kernel to .init.data
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Uwe Kleine-König authored and Tony Lindgren committed Feb 10, 2011
1 parent 2354f64 commit 119c4c2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions arch/arm/plat-omap/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,11 @@

#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;
Expand Down

0 comments on commit 119c4c2

Please sign in to comment.