Skip to content

Commit

Permalink
drivers: firmware: psci: use const and __initconst for psci_cpuidle_ops
Browse files Browse the repository at this point in the history
The psci_cpuidle_ops structures is not over-written, so add "const"
qualifier and replace __initdata with __initconst.

Acked-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Signed-off-by: Jisheng Zhang <jszhang@marvell.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
  • Loading branch information
Jisheng Zhang authored and Daniel Lezcano committed Apr 20, 2016
1 parent 1e712d9 commit 5e7c17d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/firmware/psci.c
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ int psci_cpu_suspend_enter(unsigned long index)

/* ARM specific CPU idle operations */
#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,
.init = psci_dt_cpu_init_idle,
};
Expand Down

0 comments on commit 5e7c17d

Please sign in to comment.