diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2011-10-27 06:37:47 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2011-11-05 15:09:42 -0400 |
commit | 955d2953b0402f497d58eaea91f36486bb473008 (patch) | |
tree | 3bb3d62eec68d35b6dc7d0ee7cc45de7104a2a9b /arch/arm/mach-pxa/eseries.c | |
parent | d5240dfd3c80ad2fd17b25ca38d199ab1262ab6e (diff) |
ARM: PXA: eseries: fix eseries_register_clks section mismatch warning
Fix:
WARNING: vmlinux.o(.text+0x1a820): Section mismatch in reference from the function eseries_register_clks() to the function .init.text:clkdev_add_table()
The function eseries_register_clks() references
the function __init clkdev_add_table().
This is often because eseries_register_clks lacks a __init
annotation or the annotation of clkdev_add_table is wrong.
by adding the __init annotation to eseries_register_clks() - this
function is only called from other __init-marked functions. While
we're here, mark it static as it's only called from within eseries.c.
Acked-by: Eric Miao <eric.y.miao@gmail.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-pxa/eseries.c')
-rw-r--r-- | arch/arm/mach-pxa/eseries.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-pxa/eseries.c b/arch/arm/mach-pxa/eseries.c index 8e697dd8acc..d82b7aa3c09 100644 --- a/arch/arm/mach-pxa/eseries.c +++ b/arch/arm/mach-pxa/eseries.c | |||
@@ -144,7 +144,7 @@ static struct clk_lookup eseries_clkregs[] = { | |||
144 | INIT_CLKREG(&tmio_dummy_clk, NULL, "CLK_CK32K"), | 144 | INIT_CLKREG(&tmio_dummy_clk, NULL, "CLK_CK32K"), |
145 | }; | 145 | }; |
146 | 146 | ||
147 | void eseries_register_clks(void) | 147 | static void __init eseries_register_clks(void) |
148 | { | 148 | { |
149 | clkdev_add_table(eseries_clkregs, ARRAY_SIZE(eseries_clkregs)); | 149 | clkdev_add_table(eseries_clkregs, ARRAY_SIZE(eseries_clkregs)); |
150 | } | 150 | } |