提交 9b11769f 编写于 作者: C Cory Maccarrone 提交者: Paul Walmsley

OMAP1 clock: remove __initdata from struct clk_functions to prevent crash

Commit 52650505 added an __initdata
decoration to the structure containing the clk_enable and clk_disable
functions.  Once init data was freed, these pointers went to null, and
the next enable or disable call caused the kernel to crash.  This
change removes this decoration.
Signed-off-by: NCory Maccarrone <darkstar6262@gmail.com>
[paul@pwsan.com: patch manually split and commit message edited]
Signed-off-by: NPaul Walmsley <paul@pwsan.com>
上级 e8ae6b6e
...@@ -674,7 +674,7 @@ static struct omap_clk omap_clks[] = { ...@@ -674,7 +674,7 @@ static struct omap_clk omap_clks[] = {
* init * init
*/ */
static struct clk_functions omap1_clk_functions __initdata = { static struct clk_functions omap1_clk_functions = {
.clk_enable = omap1_clk_enable, .clk_enable = omap1_clk_enable,
.clk_disable = omap1_clk_disable, .clk_disable = omap1_clk_disable,
.clk_round_rate = omap1_clk_round_rate, .clk_round_rate = omap1_clk_round_rate,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册