diff options
Diffstat (limited to 'arch/arm/mach-omap2/pm.c')
| -rw-r--r-- | arch/arm/mach-omap2/pm.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/arch/arm/mach-omap2/pm.c b/arch/arm/mach-omap2/pm.c index 9cb5cede0f50..abefbc4d8e0b 100644 --- a/arch/arm/mach-omap2/pm.c +++ b/arch/arm/mach-omap2/pm.c | |||
| @@ -80,7 +80,8 @@ static void __init omap2_init_processor_devices(void) | |||
| 80 | 80 | ||
| 81 | int __init omap_pm_clkdms_setup(struct clockdomain *clkdm, void *unused) | 81 | int __init omap_pm_clkdms_setup(struct clockdomain *clkdm, void *unused) |
| 82 | { | 82 | { |
| 83 | if (clkdm->flags & CLKDM_CAN_ENABLE_AUTO) | 83 | if ((clkdm->flags & CLKDM_CAN_ENABLE_AUTO) && |
| 84 | !(clkdm->flags & CLKDM_MISSING_IDLE_REPORTING)) | ||
| 84 | clkdm_allow_idle(clkdm); | 85 | clkdm_allow_idle(clkdm); |
| 85 | else if (clkdm->flags & CLKDM_CAN_FORCE_SLEEP && | 86 | else if (clkdm->flags & CLKDM_CAN_FORCE_SLEEP && |
| 86 | atomic_read(&clkdm->usecount) == 0) | 87 | atomic_read(&clkdm->usecount) == 0) |
| @@ -188,7 +189,7 @@ static int __init omap2_set_init_voltage(char *vdd_name, char *clk_name, | |||
| 188 | goto exit; | 189 | goto exit; |
| 189 | } | 190 | } |
| 190 | 191 | ||
| 191 | freq = clk->rate; | 192 | freq = clk_get_rate(clk); |
| 192 | clk_put(clk); | 193 | clk_put(clk); |
| 193 | 194 | ||
| 194 | rcu_read_lock(); | 195 | rcu_read_lock(); |
| @@ -203,8 +204,8 @@ static int __init omap2_set_init_voltage(char *vdd_name, char *clk_name, | |||
| 203 | bootup_volt = opp_get_voltage(opp); | 204 | bootup_volt = opp_get_voltage(opp); |
| 204 | rcu_read_unlock(); | 205 | rcu_read_unlock(); |
| 205 | if (!bootup_volt) { | 206 | if (!bootup_volt) { |
| 206 | pr_err("%s: unable to find voltage corresponding " | 207 | pr_err("%s: unable to find voltage corresponding to the bootup OPP for vdd_%s\n", |
| 207 | "to the bootup OPP for vdd_%s\n", __func__, vdd_name); | 208 | __func__, vdd_name); |
| 208 | goto exit; | 209 | goto exit; |
| 209 | } | 210 | } |
| 210 | 211 | ||
