]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
ARM: OMAP: 2430 PM: emul_ck is only available on 242x
authorKevin Hilman <khilman@mvista.com>
Wed, 6 Jun 2007 01:00:31 +0000 (18:00 -0700)
committerTony Lindgren <tony@atomide.com>
Fri, 8 Jun 2007 10:26:13 +0000 (03:26 -0700)
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 <khilman@mvista.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/pm.c

index a1655c2e323e6ff6e0a2ae6bd7127f364e59ad12..974fdc56534dd0a3c36fa49bcce92b30547ec831 100644 (file)
@@ -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();