From: Paul Walmsley <paul@pwsan.com>
To: linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org
Cc: Cory Maccarrone <darkstar6262@gmail.com>
Subject: [PATCH v2 1/5] OMAP1 clock: remove __initdata from struct clk_functions to prevent crash
Date: Wed, 06 Jan 2010 18:22:01 -0700 [thread overview]
Message-ID: <20100107012159.3551.65260.stgit@localhost.localdomain> (raw)
In-Reply-To: <20100107011932.3551.75659.stgit@localhost.localdomain>
From: Cory Maccarrone <darkstar6262@gmail.com>
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>
---
arch/arm/mach-omap1/clock_data.c | 2 +-
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 31fba07..8a85bbb 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[] = {
* 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,
next prev parent reply other threads:[~2010-01-07 1:24 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-07 1:21 [PATCH v2 0/5] OMAP clock/OPP fixes for 2.6.33-rc Paul Walmsley
2010-01-07 1:22 ` Paul Walmsley [this message]
2010-01-07 1:22 ` [PATCH v2 2/5] OMAP2xxx clock: clk2xxx.c doesn't compile if CPUFREQ is enabled Paul Walmsley
2010-01-07 1:22 ` [PATCH v2 3/5] OMAP2xxx OPP: clean up comments in OPP data Paul Walmsley
2010-01-07 1:22 ` [PATCH v2 4/5] OMAP clock/CPUFreq: add clk_exit_cpufreq_table() Paul Walmsley
2010-01-07 1:22 ` [PATCH v2 5/5] OMAP2 clock: dynamically allocate CPUFreq frequency table Paul Walmsley
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20100107012159.3551.65260.stgit@localhost.localdomain \
--to=paul@pwsan.com \
--cc=darkstar6262@gmail.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-omap@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox