summaryrefslogtreecommitdiff
path: root/drivers/clk
diff options
context:
space:
mode:
authorTang Yuantian <Yuantian.Tang@freescale.com>2014-11-07 05:59:20 (GMT)
committerMatthew Weigel <Matthew.Weigel@freescale.com>2014-12-11 18:40:35 (GMT)
commit6ac3ce019e2851d7680c025b36ec7ba6e4db55ec (patch)
treee02a0fb92b1b92f0afec286d257672a605718583 /drivers/clk
parentcd1c60525125dba14f0b06c7ef7b1865562a76f6 (diff)
downloadlinux-fsl-qoriq-6ac3ce019e2851d7680c025b36ec7ba6e4db55ec.tar.xz
This reverts commit 59d6bf6f6d2a2e99f2234ac572da5a5938fbd352
That commit tried to fix the section mismatch warning by moving the clock 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. Signed-off-by: Tang Yuantian <Yuantian.Tang@freescale.com> Change-Id: I3061188d09f504c9e1a0d8771a5336477404d016 Reviewed-on: http://git.am.freescale.net:8181/23314 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Matthew Weigel <Matthew.Weigel@freescale.com>
Diffstat (limited to 'drivers/clk')
-rw-r--r--drivers/clk/clk-qoriq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clk/clk-qoriq.c b/drivers/clk/clk-qoriq.c
index 1fed044..bbb2568 100644
--- a/drivers/clk/clk-qoriq.c
+++ b/drivers/clk/clk-qoriq.c
@@ -273,7 +273,7 @@ static const struct of_device_id qoriq_clk_ids[] __initconst = {
{}
};
-static struct platform_driver qoriq_corenet_clk_driver __initdata = {
+static struct platform_driver qoriq_corenet_clk_driver = {
.driver = {
.name = "qoriq_corenet_clock",
.owner = THIS_MODULE,