Commit 5f92d898 authored by Kevin Hilman's avatar Kevin Hilman Committed by Tony Lindgren

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: default avatarKevin Hilman <khilman@mvista.com>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent 5a5fee87
...@@ -783,11 +783,13 @@ int __init omap2_pm_init(void) ...@@ -783,11 +783,13 @@ int __init omap2_pm_init(void)
return -ENODEV; return -ENODEV;
} }
emul_ck = clk_get(NULL, "emul_ck"); if (cpu_is_omap242x()) {
if (IS_ERR(emul_ck)) { emul_ck = clk_get(NULL, "emul_ck");
printk(KERN_ERR "could not get emul_ck\n"); if (IS_ERR(emul_ck)) {
clk_put(osc_ck); printk(KERN_ERR "could not get emul_ck\n");
return -ENODEV; clk_put(osc_ck);
return -ENODEV;
}
} }
prcm_setup_regs(); prcm_setup_regs();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment