提交 955d2953 编写于 作者: R Russell King

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: NEric Miao <eric.y.miao@gmail.com>
Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
上级 d5240dfd
...@@ -144,7 +144,7 @@ static struct clk_lookup eseries_clkregs[] = { ...@@ -144,7 +144,7 @@ static struct clk_lookup eseries_clkregs[] = {
INIT_CLKREG(&tmio_dummy_clk, NULL, "CLK_CK32K"), INIT_CLKREG(&tmio_dummy_clk, NULL, "CLK_CK32K"),
}; };
void eseries_register_clks(void) static void __init eseries_register_clks(void)
{ {
clkdev_add_table(eseries_clkregs, ARRAY_SIZE(eseries_clkregs)); clkdev_add_table(eseries_clkregs, ARRAY_SIZE(eseries_clkregs));
} }
......
...@@ -11,5 +11,4 @@ extern int eseries_tmio_resume(struct platform_device *dev); ...@@ -11,5 +11,4 @@ extern int eseries_tmio_resume(struct platform_device *dev);
extern void eseries_get_tmio_gpios(void); extern void eseries_get_tmio_gpios(void);
extern struct resource eseries_tmio_resources[]; extern struct resource eseries_tmio_resources[];
extern struct platform_device e300_tc6387xb_device; extern struct platform_device e300_tc6387xb_device;
extern void eseries_register_clks(void);
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册