summaryrefslogtreecommitdiffstats
path: root/arch/arm/cpu/psci-of.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/cpu/psci-of.c')
-rw-r--r--arch/arm/cpu/psci-of.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/arch/arm/cpu/psci-of.c b/arch/arm/cpu/psci-of.c
index ef83b0edee..1b6371ddd6 100644
--- a/arch/arm/cpu/psci-of.c
+++ b/arch/arm/cpu/psci-of.c
@@ -7,7 +7,8 @@
#include <asm/psci.h>
#include <linux/arm-smccc.h>
-int of_psci_fixup(struct device_node *root, unsigned long psci_version)
+int of_psci_fixup(struct device_node *root, unsigned long psci_version,
+ const char *method)
{
struct device_node *psci;
int ret;
@@ -39,14 +40,14 @@ int of_psci_fixup(struct device_node *root, unsigned long psci_version)
if (!cpu)
break;
of_property_write_string(cpu, "enable-method", "psci");
- pr_debug("Fixed %s\n", cpu->full_name);
+ pr_debug("Fixed %pOF\n", cpu);
}
ret = of_property_write_string(psci, "compatible", compat);
if (ret)
return ret;
- ret = of_property_write_string(psci, "method", "smc");
+ ret = of_property_write_string(psci, "method", method);
if (ret)
return ret;