Skip to content

Commit

Permalink
clk: ppc-corenet: Fix Section mismatch warning
Browse files Browse the repository at this point in the history
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: Jingchang Lu <jingchang.lu@freescale.com>
Signed-off-by: Mike Turquette <mturquette@linaro.org>
  • Loading branch information
Jingchang Lu authored and Mike Turquette committed Jul 2, 2014
1 parent a12cc0b commit da788ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/clk/clk-ppc-corenet.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
.name = "ppc_corenet_clock",
.owner = THIS_MODULE,
Expand Down

0 comments on commit da788ac

Please sign in to comment.