summaryrefslogtreecommitdiffstats
path: root/drivers/clk
diff options
context:
space:
mode:
authorKevin Hao <haokexin@gmail.com>2014-12-03 09:53:51 +0100
committerMichael Turquette <mturquette@linaro.org>2015-01-17 20:27:16 +0100
commit176a107b868781c8d6868454aea7d07e0b82d6b8 (patch)
tree200bd61a402239a28cbac09fe5122d704995caef /drivers/clk
parentclk: rockchip: fix deadlock possibility in cpuclk (diff)
downloadlinux-176a107b868781c8d6868454aea7d07e0b82d6b8.tar.xz
linux-176a107b868781c8d6868454aea7d07e0b82d6b8.zip
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>
Diffstat (limited to 'drivers/clk')
-rw-r--r--drivers/clk/clk-ppc-corenet.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clk/clk-ppc-corenet.c b/drivers/clk/clk-ppc-corenet.c
index b6e6c85507a5..0a47d6f49cd6 100644
--- a/drivers/clk/clk-ppc-corenet.c
+++ b/drivers/clk/clk-ppc-corenet.c
@@ -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,