Commit 5e7c17df authored by Jisheng Zhang's avatar Jisheng Zhang Committed by Daniel Lezcano

drivers: firmware: psci: use const and __initconst for psci_cpuidle_ops

The psci_cpuidle_ops structures is not over-written, so add "const"
qualifier and replace __initdata with __initconst.
Acked-by: default avatarLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Signed-off-by: default avatarJisheng Zhang <jszhang@marvell.com>
Signed-off-by: default avatarDaniel Lezcano <daniel.lezcano@linaro.org>
parent 1e712d9b
...@@ -355,7 +355,7 @@ int psci_cpu_suspend_enter(unsigned long index) ...@@ -355,7 +355,7 @@ int psci_cpu_suspend_enter(unsigned long index)
/* ARM specific CPU idle operations */ /* ARM specific CPU idle operations */
#ifdef CONFIG_ARM #ifdef CONFIG_ARM
static struct cpuidle_ops psci_cpuidle_ops __initdata = { static const struct cpuidle_ops psci_cpuidle_ops __initconst = {
.suspend = psci_cpu_suspend_enter, .suspend = psci_cpu_suspend_enter,
.init = psci_dt_cpu_init_idle, .init = psci_dt_cpu_init_idle,
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment