Skip to content

Commit

Permalink
OMAP1 clock: remove __initdata from struct clk_functions to prevent c…
Browse files Browse the repository at this point in the history
…rash

Commit 5265050 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>
  • Loading branch information
Cory Maccarrone authored and Paul Walmsley committed Jan 8, 2010
1 parent e8ae6b6 commit 9b11769
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/arm/mach-omap1/clock_data.c
Original file line number Diff line number Diff line change
Expand Up @@ -674,7 +674,7 @@ static struct omap_clk omap_clks[] = {
* init
*/

static struct clk_functions omap1_clk_functions __initdata = {
static struct clk_functions omap1_clk_functions = {
.clk_enable = omap1_clk_enable,
.clk_disable = omap1_clk_disable,
.clk_round_rate = omap1_clk_round_rate,
Expand Down

0 comments on commit 9b11769

Please sign in to comment.