From patchwork Fri Dec 4 14:52:52 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Francesco VIRLINZI X-Patchwork-Id: 64896 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id nB4EtCQC018651 for ; Fri, 4 Dec 2009 14:55:13 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756794AbZLDOxq (ORCPT ); Fri, 4 Dec 2009 09:53:46 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756892AbZLDOxp (ORCPT ); Fri, 4 Dec 2009 09:53:45 -0500 Received: from eu1sys200aog101.obsmtp.com ([207.126.144.111]:37230 "EHLO eu1sys200aog101.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756880AbZLDOxX (ORCPT ); Fri, 4 Dec 2009 09:53:23 -0500 Received: from source ([164.129.1.35]) (using TLSv1) by eu1sys200aob101.postini.com ([207.126.147.11]) with SMTP ID DSNKSxkiaCWpaFKhqFM9Pf4SgKzcrpE/ip+y@postini.com; Fri, 04 Dec 2009 14:53:29 UTC Received: from zeta.dmz-eu.st.com (ns2.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 0DEC421A for ; Fri, 4 Dec 2009 14:53:27 +0000 (GMT) Received: from mail3.ctn.st.com (mail3.ctn.st.com [164.130.116.150]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id C7476D85 for ; Fri, 4 Dec 2009 14:53:26 +0000 (GMT) Received: from localhost (mdt-dhcp41.ctn.st.com [10.52.139.41]) by mail3.ctn.st.com (MOS 3.8.7a) with ESMTP id CXA54109 (AUTH virlinzi); Fri, 4 Dec 2009 15:53:29 +0100 (CET) From: Francesco VIRLINZI To: linux-sh@vger.kernel.org Cc: Francesco Virlinzi Subject: [PATCH (sh-2.6.30.y) 10/13] stm: pm: Fixed resume from hibernation on sysconf Date: Fri, 4 Dec 2009 15:52:52 +0100 Message-Id: <1259938375-27499-10-git-send-email-francesco.virlinzi@st.com> X-Mailer: git-send-email 1.6.2.5 In-Reply-To: <1259938375-27499-9-git-send-email-francesco.virlinzi@st.com> References: <1259938375-27499-1-git-send-email-francesco.virlinzi@st.com> <1259938375-27499-2-git-send-email-francesco.virlinzi@st.com> <1259938375-27499-3-git-send-email-francesco.virlinzi@st.com> <1259938375-27499-4-git-send-email-francesco.virlinzi@st.com> <1259938375-27499-5-git-send-email-francesco.virlinzi@st.com> <1259938375-27499-6-git-send-email-francesco.virlinzi@st.com> <1259938375-27499-7-git-send-email-francesco.virlinzi@st.com> <1259938375-27499-8-git-send-email-francesco.virlinzi@st.com> <1259938375-27499-9-git-send-email-francesco.virlinzi@st.com> Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org 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);