Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1e712d9b authored by Jisheng Zhang's avatar Jisheng Zhang Committed by Daniel Lezcano
Browse files

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: default avatarJisheng Zhang <jszhang@marvell.com>
Signed-off-by: default avatarDaniel Lezcano <daniel.lezcano@linaro.org>
Acked-by: default avatarAndy Gross <andy.gross@linaro.org>
parent 4cfd5520
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -274,7 +274,7 @@ static int __init qcom_cpuidle_init(struct device_node *cpu_node, int cpu)
	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,
};