aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorCory Maccarrone <darkstar6262@gmail.com>2010-01-08 17:23:14 -0500
committerPaul Walmsley <paul@pwsan.com>2010-01-08 17:23:14 -0500
commit9b11769f998e138cbc89ba822316aa3e63912856 (patch)
treec37639a490e5166c513efd9e272593bedd336502 /arch
parente8ae6b6e4dec43db4ae6fc67550fe63f16247667 (diff)
OMAP1 clock: remove __initdata from struct clk_functions to prevent crash
Commit 52650505fbf3a6ab851c801f54e73e76c55ab8da 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: Cory Maccarrone <darkstar6262@gmail.com> [paul@pwsan.com: patch manually split and commit message edited] Signed-off-by: Paul Walmsley <paul@pwsan.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/mach-omap1/clock_data.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-omap1/clock_data.c b/arch/arm/mach-omap1/clock_data.c
index 31fba077142c..8a85bbb6bb00 100644
--- a/arch/arm/mach-omap1/clock_data.c
+++ b/arch/arm/mach-omap1/clock_data.c
@@ -674,7 +674,7 @@ static struct omap_clk omap_clks[] = {
674 * init 674 * init
675 */ 675 */
676 676
677static struct clk_functions omap1_clk_functions __initdata = { 677static struct clk_functions omap1_clk_functions = {
678 .clk_enable = omap1_clk_enable, 678 .clk_enable = omap1_clk_enable,
679 .clk_disable = omap1_clk_disable, 679 .clk_disable = omap1_clk_disable,
680 .clk_round_rate = omap1_clk_round_rate, 680 .clk_round_rate = omap1_clk_round_rate,