From patchwork Wed Mar 11 11:08:41 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 5983471 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 904069F318 for ; Wed, 11 Mar 2015 11:08:58 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C0237203AC for ; Wed, 11 Mar 2015 11:08:56 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E0985203AA for ; Wed, 11 Mar 2015 11:08:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752750AbbCKLIy (ORCPT ); Wed, 11 Mar 2015 07:08:54 -0400 Received: from mailout1.w1.samsung.com ([210.118.77.11]:35125 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752623AbbCKLIw (ORCPT ); Wed, 11 Mar 2015 07:08:52 -0400 Received: from eucpsbgm1.samsung.com (unknown [203.254.199.244]) by mailout1.w1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0NL100DRBOHJG220@mailout1.w1.samsung.com>; Wed, 11 Mar 2015 11:12:55 +0000 (GMT) X-AuditID: cbfec7f4-b7f126d000001e9a-44-550021b06a3e Received: from eusync2.samsung.com ( [203.254.199.212]) by eucpsbgm1.samsung.com (EUCPMTA) with SMTP id DF.F2.07834.0B120055; Wed, 11 Mar 2015 11:06:24 +0000 (GMT) Received: from AMDC1943.digital.local ([106.116.151.171]) by eusync2.samsung.com (Oracle Communications Messaging Server 7u4-23.01(7.0.4.23.0) 64bit (built Aug 10 2011)) with ESMTPA id <0NL100G66OAL9560@eusync2.samsung.com>; Wed, 11 Mar 2015 11:08:49 +0000 (GMT) From: Krzysztof Kozlowski To: Kukjin Kim , linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Arnd Bergmann , Olof Johansson , Marek Szyprowski , Pankaj Dubey , Krzysztof Kozlowski Subject: [PATCH v4 3/3] ARM: EXYNOS: Remove left over 'extra_save' Date: Wed, 11 Mar 2015 12:08:41 +0100 Message-id: <1426072121-6822-3-git-send-email-k.kozlowski@samsung.com> X-Mailer: git-send-email 1.9.1 In-reply-to: <1426072121-6822-1-git-send-email-k.kozlowski@samsung.com> References: <1426072121-6822-1-git-send-email-k.kozlowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFmphluLIzCtJLcpLzFFi42I5/e/4Fd0NigyhBvf3S1r8nXSM3eL1C0OL /sevmS02Pb7GanF51xw2ixnn9zFZrD1yl93i1PXPbBaLtn5hd+D0+P1rEqPHplWdbB6bl9R7 XDnRxOrRt2UVo8fnTXIBbFFcNimpOZllqUX6dglcGY1vFzMWTBau2Lz/M0sD433+LkZODgkB E4lrC1+zQ9hiEhfurWfrYuTiEBJYyigxr+cMM4TTxySxqG8yWBWbgLHE5uVLwKpEBLoYJWZt +c0GkmAWOMsoMWmFO4gtLOAk8W7hLLAGFgFViRt7jzOB2LwCbhJPZ8xihlgnJ3Hy2GRWEJtT wF2ic+MmsBohoJrW798ZJzDyLmBkWMUomlqaXFCclJ5rqFecmFtcmpeul5yfu4kREnJfdjAu PmZ1iFGAg1GJh/dm9L8QIdbEsuLK3EOMEhzMSiK8ffwMoUK8KYmVValF+fFFpTmpxYcYmTg4 pRoY02XUGBzOKxxMPRW+VSdtvaRtP+tpIwfN35925muzTDnd/rr7drXs3hL/8k0GkxLYpP9c vra8LPu2U+YD1w2iptEeM5c1BX1sizlip9J93f+Gw//+44+9ZEUmBTc8NHzyZ1akXZ7Sk5pg pVS2CZ725z/9+rFq/h7z4zeE6/O2Fj7Ndw2b0JqlxFKckWioxVxUnAgAeUa7tBcCAAA= Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Since 32b0aa9aaeb4 ("ARM: EXYNOS: Remove i2c sys configuration related code") the Exynos 5250 no longer saves additional registers under 'exynos_pm_data.extra_save' field. No one else uses this code so get rid of it making also 'exynos_pm_data' const everywhere. Signed-off-by: Krzysztof Kozlowski Reviewed-by: Pankaj Dubey --- Notes: Changes since v3: 1. Add Pankaj's reviewed-by. Changes since v2: 1. Remove also 'num_extra_save' field (suggested by Pankaj Dubey). Changes since v1: 1. New patch. arch/arm/mach-exynos/suspend.c | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/arch/arm/mach-exynos/suspend.c b/arch/arm/mach-exynos/suspend.c index d42fb1cd202d..6e5a3355ae81 100644 --- a/arch/arm/mach-exynos/suspend.c +++ b/arch/arm/mach-exynos/suspend.c @@ -63,8 +63,6 @@ static struct sleep_save exynos_core_save[] = { struct exynos_pm_data { const struct exynos_wkup_irq *wkup_irq; - struct sleep_save *extra_save; - int num_extra_save; unsigned int wake_disable_mask; unsigned int *release_ret_regs; @@ -75,7 +73,7 @@ struct exynos_pm_data { int (*cpu_suspend)(unsigned long); }; -static struct exynos_pm_data *pm_data; +static const struct exynos_pm_data *pm_data; static int exynos5420_cpu_state; static unsigned int exynos_pmu_spare3; @@ -240,10 +238,6 @@ static void exynos_pm_prepare(void) s3c_pm_do_save(exynos_core_save, ARRAY_SIZE(exynos_core_save)); - if (pm_data->extra_save) - s3c_pm_do_save(pm_data->extra_save, - pm_data->num_extra_save); - exynos_pm_enter_sleep_mode(); /* ensure at least INFORM0 has the resume address */ @@ -366,10 +360,6 @@ static void exynos_pm_resume(void) /* For release retention */ exynos_pm_release_retention(); - if (pm_data->extra_save) - s3c_pm_do_restore_core(pm_data->extra_save, - pm_data->num_extra_save); - s3c_pm_do_restore_core(exynos_core_save, ARRAY_SIZE(exynos_core_save)); if (cpuid == ARM_CPU_PART_CORTEX_A9) @@ -622,7 +612,7 @@ void __init exynos_pm_init(void) pr_err("Failed to find PMU node\n"); return; } - pm_data = (struct exynos_pm_data *) match->data; + pm_data = (const struct exynos_pm_data *) match->data; /* Platform-specific GIC callback */ gic_arch_extn.irq_set_wake = exynos_irq_set_wake;