Skip to content

Commit

Permalink
Revert "clk: ppc-corenet: Fix Section mismatch warning"
Browse files Browse the repository at this point in the history
This reverts commit da788ac.

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>
  • Loading branch information
Kevin Hao authored and Michael Turquette committed Jan 17, 2015
1 parent a5e1baf commit 176a107
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 __initdata = {
static struct platform_driver ppc_corenet_clk_driver = {
.driver = {
.name = "ppc_corenet_clock",
.of_match_table = ppc_clk_ids,
Expand Down

0 comments on commit 176a107

Please sign in to comment.