diff mbox

[(sh-2.6.30.y),10/13] stm: pm: Fixed resume from hibernation on sysconf

Message ID 1259938375-27499-10-git-send-email-francesco.virlinzi@st.com (mailing list archive)
State Not Applicable
Headers show

Commit Message

Francesco VIRLINZI Dec. 4, 2009, 2:52 p.m. UTC
None
diff mbox

Patch

diff --git a/drivers/stm/sysconf.c b/drivers/stm/sysconf.c
index cc599be..75ebe67 100644
--- a/drivers/stm/sysconf.c
+++ b/drivers/stm/sysconf.c
@@ -330,7 +330,7 @@  static int sysconf_pm_freeze(void)
 			continue;
 		}
 
-		for (j = 0; j < block->size; i += sizeof(unsigned long))
+		for (j = 0; j < block->size; j += sizeof(unsigned long))
 			block->snapshot[j / sizeof(unsigned long)] =
 					readl(block->base + j);
 	}
@@ -358,7 +358,7 @@  static int sysconf_pm_restore(void)
 			continue;
 		}
 
-		for (j = 0; j < block->size; i += sizeof(unsigned long))
+		for (j = 0; j < block->size; j += sizeof(unsigned long))
 			writel(block->snapshot[j / sizeof(unsigned long)],
 					block->base + j);