From: Jisheng Zhang Date: Tue, 22 Mar 2016 14:42:43 +0000 (+0800) Subject: drivers: firmware: psci: use const and __initconst for psci_cpuidle_ops X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=5e7c17df795e462c70a43f1b3b670e08efefe8fd;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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: Lorenzo Pieralisi Signed-off-by: Jisheng Zhang Signed-off-by: Daniel Lezcano --- diff --git a/drivers/firmware/psci.c b/drivers/firmware/psci.c index 11bfee8b79a9..eb8134a148c0 100644 --- a/drivers/firmware/psci.c +++ b/drivers/firmware/psci.c @@ -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, };