aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/soc/qcom/spm.c
diff options
context:
space:
mode:
authorJisheng Zhang <jszhang@marvell.com>2016-03-22 22:42:42 +0800
committerDaniel Lezcano <daniel.lezcano@linaro.org>2016-04-20 06:59:41 +0200
commit1e712d9be873a44d7f5bc2a11d0ad6573029a67e (patch)
treea9f9eb739a9b8605943ef76c78a9460169479fec /drivers/soc/qcom/spm.c
parentARM: cpuidle: constify return value of arm_cpuidle_get_ops() (diff)
downloadlinux-dev-1e712d9be873a44d7f5bc2a11d0ad6573029a67e.tar.xz
linux-dev-1e712d9be873a44d7f5bc2a11d0ad6573029a67e.zip
soc: qcom: spm: Use const and __initconst for qcom_cpuidle_ops
The qcom_cpuidle_ops structures is not over-written, so add "const" qualifier and replace __initdata with __initconst. Signed-off-by: Jisheng Zhang <jszhang@marvell.com> Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org> Acked-by: Andy Gross <andy.gross@linaro.org>
Diffstat (limited to 'drivers/soc/qcom/spm.c')
-rw-r--r--drivers/soc/qcom/spm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/soc/qcom/spm.c b/drivers/soc/qcom/spm.c
index 5548a31e1a39..1fcbb22a4a1c 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,
};