From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jisheng Zhang Subject: [PATCH 3/4] soc: qcom: spm: use const and __initconst for qcom_cpuidle_ops Date: Tue, 22 Mar 2016 22:42:42 +0800 Message-ID: <1458657763-2561-4-git-send-email-jszhang@marvell.com> References: <1458657763-2561-1-git-send-email-jszhang@marvell.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from mx0b-0016f401.pphosted.com ([67.231.156.173]:9191 "EHLO mx0b-0016f401.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758763AbcCVOrJ (ORCPT ); Tue, 22 Mar 2016 10:47:09 -0400 In-Reply-To: <1458657763-2561-1-git-send-email-jszhang@marvell.com> Sender: linux-arm-msm-owner@vger.kernel.org List-Id: linux-arm-msm@vger.kernel.org To: linux@arm.linux.org.uk, mark.rutland@arm.com, lorenzo.pieralisi@arm.com, andy.gross@linaro.org, david.brown@linaro.org, daniel.lezcano@linaro.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org, Jisheng Zhang The qcom_cpuidle_ops structures is not over-written, so add "const" qualifier and replace __initdata with __initconst. Signed-off-by: Jisheng Zhang --- drivers/soc/qcom/spm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/soc/qcom/spm.c b/drivers/soc/qcom/spm.c index 5548a31..1fcbb22 100644 --- a/drivers/soc/qcom/spm.c +++ b/drivers/soc/qcom/spm.c @@ -274,7 +274,7 @@ check_spm: return per_cpu(cpu_spm_drv, cpu) ? 0 : -ENXIO; } -static struct cpuidle_ops qcom_cpuidle_ops __initdata = { +static const struct cpuidle_ops qcom_cpuidle_ops __initconst = { .suspend = qcom_idle_enter, .init = qcom_cpuidle_init, }; -- 2.8.0.rc3