Signed-off-by: Peter 'p2' De Schrijver <[EMAIL PROTECTED]>
---
 arch/arm/mach-omap2/smartreflex.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/arch/arm/mach-omap2/smartreflex.c 
b/arch/arm/mach-omap2/smartreflex.c
index 0f3a659..b41fe96 100644
--- a/arch/arm/mach-omap2/smartreflex.c
+++ b/arch/arm/mach-omap2/smartreflex.c
@@ -396,17 +396,17 @@ static void sr_configure_vc(void)
 
        /* Setup voltctrl and other setup times */
        /* XXX CONFIG_SYSOFFMODE has not been implemented yet */
-#ifdef CONFIG_SYSOFFMODE
-       prm_write_mod_reg(OMAP3430_AUTO_OFF | OMAP3430_AUTO_RET,
-                       OMAP3430_GR_MOD,
+#ifdef CONFIG_OMAP_SYSOFFMODE
+       prm_write_mod_reg(OMAP3430_AUTO_OFF | OMAP3430_AUTO_RET |
+                       OMAP3430_SEL_OFF, OMAP3430_GR_MOD,
                        OMAP3_PRM_VOLTCTRL_OFFSET);
 
        prm_write_mod_reg(OMAP3430_CLKSETUP_DURATION, OMAP3430_GR_MOD,
                        OMAP3_PRM_CLKSETUP_OFFSET);
        prm_write_mod_reg((OMAP3430_VOLTSETUP_TIME2 <<
-                       OMAP3430_VOLTSETUP_TIME2_OFFSET) |
+                       OMAP3430_SETUP_TIME2_SHIFT) |
                        (OMAP3430_VOLTSETUP_TIME1 <<
-                       OMAP3430_VOLTSETUP_TIME1_OFFSET),
+                       OMAP3430_SETUP_TIME1_SHIFT),
                        OMAP3430_GR_MOD, OMAP3_PRM_VOLTSETUP1_OFFSET);
 
        prm_write_mod_reg(OMAP3430_VOLTOFFSET_DURATION, OMAP3430_GR_MOD,
-- 
1.5.3.4

--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to