This patch adds a dummy gpmc clock node to prevent a
crash at bootup on OMAP4.

Signed-off-by: Rajendra Nayak <[email protected]>
---
 arch/arm/mach-omap2/clock44xx.c |    1 +
 arch/arm/mach-omap2/clock44xx.h |    7 +++++++
 2 files changed, 8 insertions(+), 0 deletions(-)

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
-- 
1.5.4.7

--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to