[generic/3.10]: refresh patches
[openwrt/svn-archive/archive.git] / target / linux / orion / patches-3.3 / 400-fix-section-mismatch-warnings.patch
1 --- a/arch/arm/mach-orion5x/common.c
2 +++ b/arch/arm/mach-orion5x/common.c
3 @@ -192,7 +192,7 @@ void __init orion5x_init_early(void)
4
5 int orion5x_tclk;
6
7 -int __init orion5x_find_tclk(void)
8 +static __init int orion5x_find_tclk(void)
9 {
10 u32 dev, rev;
11
12 @@ -204,7 +204,7 @@ int __init orion5x_find_tclk(void)
13 return 166666667;
14 }
15
16 -static void orion5x_timer_init(void)
17 +static __init void orion5x_timer_init(void)
18 {
19 orion5x_tclk = orion5x_find_tclk();
20
21 --- a/arch/arm/mach-orion5x/addr-map.c
22 +++ b/arch/arm/mach-orion5x/addr-map.c
23 @@ -76,7 +76,7 @@ static int __init cpu_win_can_remap(cons
24 /*
25 * Description of the windows needed by the platform code
26 */
27 -static struct __initdata orion_addr_map_cfg addr_map_cfg = {
28 +static struct orion_addr_map_cfg addr_map_cfg __initdata = {
29 .num_wins = 8,
30 .cpu_win_can_remap = cpu_win_can_remap,
31 .bridge_virt_base = ORION5X_BRIDGE_VIRT_BASE,