Skip to content

Commit

Permalink
soc: qcom: spm: Use const and __initconst for qcom_cpuidle_ops
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jisheng Zhang authored and Daniel Lezcano committed Apr 20, 2016
1 parent 4cfd552 commit 1e712d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/soc/qcom/spm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};
Expand Down

0 comments on commit 1e712d9

Please sign in to comment.