Commit da788acb authored by Jingchang Lu's avatar Jingchang Lu Committed by Mike Turquette

clk: ppc-corenet: Fix Section mismatch warning

WARNING: drivers/built-in.o(.data+0x10258):
Section mismatch in reference from the variable ppc_corenet_clk_driver
to the (unknown reference) .init.rodata:(unknown)
The variable ppc_corenet_clk_driver references
the (unknown reference) __initconst (unknown)
If the reference is valid then annotate the
variable with __init* or __refdata (see linux/init.h) or name the variable:
*_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console
Signed-off-by: default avatarJingchang Lu <jingchang.lu@freescale.com>
Signed-off-by: default avatarMike Turquette <mturquette@linaro.org>
parent a12cc0b9
...@@ -291,7 +291,7 @@ static const struct of_device_id ppc_clk_ids[] __initconst = { ...@@ -291,7 +291,7 @@ static const struct of_device_id ppc_clk_ids[] __initconst = {
{} {}
}; };
static struct platform_driver ppc_corenet_clk_driver = { static struct platform_driver ppc_corenet_clk_driver __initdata = {
.driver = { .driver = {
.name = "ppc_corenet_clock", .name = "ppc_corenet_clock",
.owner = THIS_MODULE, .owner = THIS_MODULE,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment