diff mbox

[03/10,RFC] OMAP4: PM: Add a dummy node to prevent crash at bootup

Message ID 1243586540-12274-3-git-send-email-rnayak@ti.com (mailing list archive)
State Superseded
Delegated to: Kevin Hilman
Headers show

Commit Message

Rajendra Nayak May 29, 2009, 8:42 a.m. UTC
This patch adds a dummy gpmc clock node to prevent a
crash at bootup on OMAP4.

Signed-off-by: Rajendra Nayak <rnayak@ti.com>
---
 arch/arm/mach-omap2/clock44xx.c |    1 +
 arch/arm/mach-omap2/clock44xx.h |    7 +++++++
 2 files changed, 8 insertions(+), 0 deletions(-)
diff mbox

Patch

diff --git a/arch/arm/mach-omap2/clock44xx.c b/arch/arm/mach-omap2/clock44xx.c
index f4e0113..ffb63b3 100644
--- a/arch/arm/mach-omap2/clock44xx.c
+++ b/arch/arm/mach-omap2/clock44xx.c
@@ -73,6 +73,7 @@  static struct omap_clk omap44xx_clks[] = {
 	CLK(NULL,	"gpt9_fck",	&gpt9_fck,	CK_443X),
 	CLK(NULL,	"gpt10_fck",	&gpt10_fck,	CK_443X),
 	CLK(NULL,	"gpt11_fck",	&gpt11_fck,	CK_443X),
+	CLK(NULL,       "gpmc_fck",    &gpmc_fck,     CK_443X),
 };
 
 static struct clk_functions omap2_clk_functions = {
diff --git a/arch/arm/mach-omap2/clock44xx.h b/arch/arm/mach-omap2/clock44xx.h
index 2ce7147..8a0cc62 100644
--- a/arch/arm/mach-omap2/clock44xx.h
+++ b/arch/arm/mach-omap2/clock44xx.h
@@ -291,4 +291,11 @@  static struct clk gpt11_fck = {
 	.clksel         = omap443x_gpt_clksel,
 	.recalc         = &omap2_clksel_recalc,
 };
+
+/* TODO:Dummy clock node still needed to boot on Omap4, remove later */
+static struct clk gpmc_fck = {
+	.name           = "gpmc_fck",
+	.ops            = &clkops_null,
+};
+
 #endif