]> git.baikalelectronics.ru Git - kernel.git/commit
Revert "clk: ppc-corenet: Fix Section mismatch warning"
authorKevin Hao <haokexin@gmail.com>
Wed, 3 Dec 2014 08:53:51 +0000 (16:53 +0800)
committerMichael Turquette <mturquette@linaro.org>
Sat, 17 Jan 2015 19:27:16 +0000 (11:27 -0800)
commitef01d401026921d7836013510b40540dc0658c0e
tree200bd61a402239a28cbac09fe5122d704995caef
parentf9917bc81c1a4c1bb5d3afe49a927d0d0f26839a
Revert "clk: ppc-corenet: Fix Section mismatch warning"

This reverts commit ded6c4a226764daa251c888974d03d4ff71b774c.

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>
drivers/clk/clk-ppc-corenet.c