From 5f92d8989ad0d1bb7f1e5b360bdaf1c16f9fae35 Mon Sep 17 00:00:00 2001 From: Kevin Hilman Date: Tue, 5 Jun 2007 18:00:31 -0700 Subject: [PATCH] ARM: OMAP: 2430 PM: emul_ck is only available on 242x omap2_pm_init: on 2430, don't fail if emul_ck is not available. It is only available on 2420 Signed-off-by: Kevin Hilman Signed-off-by: Tony Lindgren --- arch/arm/mach-omap2/pm.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/arch/arm/mach-omap2/pm.c b/arch/arm/mach-omap2/pm.c index a1655c2e323..974fdc56534 100644 --- a/arch/arm/mach-omap2/pm.c +++ b/arch/arm/mach-omap2/pm.c @@ -783,11 +783,13 @@ int __init omap2_pm_init(void) return -ENODEV; } - emul_ck = clk_get(NULL, "emul_ck"); - if (IS_ERR(emul_ck)) { - printk(KERN_ERR "could not get emul_ck\n"); - clk_put(osc_ck); - return -ENODEV; + if (cpu_is_omap242x()) { + emul_ck = clk_get(NULL, "emul_ck"); + if (IS_ERR(emul_ck)) { + printk(KERN_ERR "could not get emul_ck\n"); + clk_put(osc_ck); + return -ENODEV; + } } prcm_setup_regs(); -- 2.41.1