ARM: OMAP2+: dmtimer: remove redundant sysconfig context restore
authorTarun Kanti DebBarma <tarun.kanti@ti.com>
Thu, 12 Apr 2012 09:43:47 +0000 (15:13 +0530)
committerTony Lindgren <tony@atomide.com>
Thu, 10 May 2012 16:39:44 +0000 (09:39 -0700)
Since hwmod framework now manages sysconfig context save/restore
there is no more need to touch this register in driver. Hence,
remove restore of sysconfig register in omap_timer_restore_context.
This was causing incorrect context restore of sysconfig register.

Signed-off-by: Tarun Kanti DebBarma <tarun.kanti@ti.com>
Acked-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Acked-by: Kevin Hilman <khilman@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/plat-omap/dmtimer.c
arch/arm/plat-omap/include/plat/dmtimer.h

index 652139c0339e2fe8fae6df508bbc3a548fd06172..15e7882f371c1594432fd2c40054bcd523672aa1 100644 (file)
@@ -82,8 +82,6 @@ static void omap_dm_timer_write_reg(struct omap_dm_timer *timer, u32 reg,
 
 static void omap_timer_restore_context(struct omap_dm_timer *timer)
 {
-       __raw_writel(timer->context.tiocp_cfg,
-                       timer->io_base + OMAP_TIMER_OCP_CFG_OFFSET);
        if (timer->revision == 1)
                __raw_writel(timer->context.tistat, timer->sys_stat);
 
index 9418f00b6c381428fe32c61c95d8be42c455a2d4..a4c08d04e28496a32a07b998f36d1d431aa81363 100644 (file)
@@ -75,7 +75,6 @@ struct clk;
 
 struct timer_regs {
        u32 tidr;
-       u32 tiocp_cfg;
        u32 tistat;
        u32 tisr;
        u32 tier;