Commit da788acb28386aa896224e784954bb73c99ff26c

Authored by Jingchang Lu
Committed by Mike Turquette
1 parent a12cc0b933

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: Jingchang Lu <jingchang.lu@freescale.com>
Signed-off-by: Mike Turquette <mturquette@linaro.org>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

drivers/clk/clk-ppc-corenet.c
... ... @@ -291,7 +291,7 @@
291 291 {}
292 292 };
293 293  
294   -static struct platform_driver ppc_corenet_clk_driver = {
  294 +static struct platform_driver ppc_corenet_clk_driver __initdata = {
295 295 .driver = {
296 296 .name = "ppc_corenet_clock",
297 297 .owner = THIS_MODULE,