From: Kevin Hilman Date: Wed, 6 Jun 2007 01:00:31 +0000 (-0700) Subject: ARM: OMAP: 2430 PM: emul_ck is only available on 242x X-Git-Tag: v2.6.22-omap1~59 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=5f92d8989ad0d1bb7f1e5b360bdaf1c16f9fae35;p=linux-2.6-omap-h63xx.git 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 --- 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();