]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
drivers: firmware: psci: use const and __initconst for psci_cpuidle_ops
authorJisheng Zhang <jszhang@marvell.com>
Tue, 22 Mar 2016 14:42:43 +0000 (22:42 +0800)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Wed, 20 Apr 2016 08:44:32 +0000 (10:44 +0200)
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>
drivers/firmware/psci.c

index 11bfee8b79a9f65418bcbe53dfc708edb220e69d..eb8134a148c065df2ae54972be79bf57fa2fd6a9 100644 (file)
@@ -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,
 };