]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
soc: qcom: spm: Use const and __initconst for qcom_cpuidle_ops
authorJisheng Zhang <jszhang@marvell.com>
Tue, 22 Mar 2016 14:42:42 +0000 (22:42 +0800)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Wed, 20 Apr 2016 04:59:41 +0000 (06:59 +0200)
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>
drivers/soc/qcom/spm.c

index 5548a31e1a39a100142b45841cbe38e1aa007e38..1fcbb22a4a1c6c7b7530481a164cc9d115648cd2 100644 (file)
@@ -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,
 };