Commit 176a107b868781c8d6868454aea7d07e0b82d6b8

Authored by Kevin Hao
Committed by Michael Turquette
1 parent a5e1baf7dc

Revert "clk: ppc-corenet: Fix Section mismatch warning"

This reverts commit da788acb28386aa896224e784954bb73c99ff26c.

That commit tried to fix the section mismatch warning by moving the
ppc_corenet_clk_driver struct to init section. This is definitely wrong
because the kernel would free the memories occupied by this struct
after boot while this driver is still registered in the driver core.
The kernel would panic when accessing this driver struct.

Cc: stable@vger.kernel.org # 3.17
Signed-off-by: Kevin Hao <haokexin@gmail.com>
Acked-by: Scott Wood <scottwood@freescale.com>
Signed-off-by: Michael 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 __initdata = {
  294 +static struct platform_driver ppc_corenet_clk_driver = {
295 295 .driver = {
296 296 .name = "ppc_corenet_clock",
297 297 .of_match_table = ppc_clk_ids,