Skip to content

Commit

Permalink
Orion5x: Fix Section mismatch warnings
Browse files Browse the repository at this point in the history
Wrongly placed __initdata, and missing __init caused these warnings.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
  • Loading branch information
Andrew Lunn committed May 14, 2012
1 parent 6ed272f commit d2621b8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion arch/arm/mach-orion5x/addr-map.c
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ static int __init cpu_win_can_remap(const struct orion_addr_map_cfg *cfg,
/*
* Description of the windows needed by the platform code
*/
static struct __initdata orion_addr_map_cfg addr_map_cfg = {
static struct orion_addr_map_cfg addr_map_cfg __initdata = {
.num_wins = 8,
.cpu_win_can_remap = cpu_win_can_remap,
.bridge_virt_base = ORION5X_BRIDGE_VIRT_BASE,
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-orion5x/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ int __init orion5x_find_tclk(void)
return 166666667;
}

static void orion5x_timer_init(void)
static void __init orion5x_timer_init(void)
{
orion5x_tclk = orion5x_find_tclk();

Expand Down

0 comments on commit d2621b8

Please sign in to comment.