Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1362795
| From | Jisheng Zhang <jszhang@marvell.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 4/4] drivers: firmware: psci: use const and __initconst for psci_cpuidle_ops |
| Date | 2016-03-22 15:50 +0100 |
| Message-ID | <rfvN8-5Sf-29@gated-at.bofh.it> (permalink) |
| References | <rfvN7-5Sf-7@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
The psci_cpuidle_ops structures is not over-written, so add "const"
qualifier and replace __initdata with __initconst.
Signed-off-by: Jisheng Zhang <jszhang@marvell.com>
---
drivers/firmware/psci.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/firmware/psci.c b/drivers/firmware/psci.c
index 6d86881..7d52186 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,
};
--
2.8.0.rc3
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 0/4] ARM: cpuidle: use const and __initconst for cpuidle_ops Jisheng Zhang <jszhang@marvell.com> - 2016-03-22 15:50 +0100 [PATCH 3/4] soc: qcom: spm: use const and __initconst for qcom_cpuidle_ops Jisheng Zhang <jszhang@marvell.com> - 2016-03-22 15:50 +0100 [PATCH 4/4] drivers: firmware: psci: use const and __initconst for psci_cpuidle_ops Jisheng Zhang <jszhang@marvell.com> - 2016-03-22 15:50 +0100 Re: [PATCH 0/4] ARM: cpuidle: use const and __initconst for cpuidle_ops Daniel Lezcano <daniel.lezcano@linaro.org> - 2016-03-25 12:30 +0100
csiph-web