aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm64/kernel/psci.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm64/kernel/psci.c')
-rw-r--r--arch/arm64/kernel/psci.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/arch/arm64/kernel/psci.c b/arch/arm64/kernel/psci.c
index 9e9798f91172..553954771a67 100644
--- a/arch/arm64/kernel/psci.c
+++ b/arch/arm64/kernel/psci.c
@@ -235,7 +235,7 @@ static void psci_sys_poweroff(void)
235 * PSCI Function IDs for v0.2+ are well defined so use 235 * PSCI Function IDs for v0.2+ are well defined so use
236 * standard values. 236 * standard values.
237 */ 237 */
238static int psci_0_2_init(struct device_node *np) 238static int __init psci_0_2_init(struct device_node *np)
239{ 239{
240 int err, ver; 240 int err, ver;
241 241
@@ -296,7 +296,7 @@ out_put_node:
296/* 296/*
297 * PSCI < v0.2 get PSCI Function IDs via DT. 297 * PSCI < v0.2 get PSCI Function IDs via DT.
298 */ 298 */
299static int psci_0_1_init(struct device_node *np) 299static int __init psci_0_1_init(struct device_node *np)
300{ 300{
301 u32 id; 301 u32 id;
302 int err; 302 int err;
@@ -434,9 +434,11 @@ static int cpu_psci_cpu_kill(unsigned int cpu)
434 return 0; 434 return 0;
435} 435}
436#endif 436#endif
437#endif
437 438
438const struct cpu_operations cpu_psci_ops = { 439const struct cpu_operations cpu_psci_ops = {
439 .name = "psci", 440 .name = "psci",
441#ifdef CONFIG_SMP
440 .cpu_init = cpu_psci_cpu_init, 442 .cpu_init = cpu_psci_cpu_init,
441 .cpu_prepare = cpu_psci_cpu_prepare, 443 .cpu_prepare = cpu_psci_cpu_prepare,
442 .cpu_boot = cpu_psci_cpu_boot, 444 .cpu_boot = cpu_psci_cpu_boot,
@@ -445,6 +447,6 @@ const struct cpu_operations cpu_psci_ops = {
445 .cpu_die = cpu_psci_cpu_die, 447 .cpu_die = cpu_psci_cpu_die,
446 .cpu_kill = cpu_psci_cpu_kill, 448 .cpu_kill = cpu_psci_cpu_kill,
447#endif 449#endif
450#endif
448}; 451};
449 452
450#endif