summaryrefslogtreecommitdiff
path: root/arch/arm/lib
diff options
context:
space:
mode:
authorHou Zhiqiang <Zhiqiang.Hou@nxp.com>2016-07-29 18:26:35 +0800
committerYork Sun <york.sun@nxp.com>2016-08-02 09:47:35 -0700
commit388aabc85d4c6a0e603e45421e7e2edadd9f24ac (patch)
tree131823e7576822480e06aa4c1ea20ebe247a8fe0 /arch/arm/lib
parent8936691ba69bc322201c62e977e2803cfe67fc40 (diff)
arm/PSCI: Removed unused code
Identify the PSCI node only by its name, so removed the code finding it by compatible string. Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com> Reviewed-by: York Sun <york.sun@nxp.com>
Diffstat (limited to 'arch/arm/lib')
-rw-r--r--arch/arm/lib/psci-dt.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/arch/arm/lib/psci-dt.c b/arch/arm/lib/psci-dt.c
index 8dc31d4897..bcd92e77ee 100644
--- a/arch/arm/lib/psci-dt.c
+++ b/arch/arm/lib/psci-dt.c
@@ -51,27 +51,10 @@ int fdt_psci(void *fdt)
fdt_setprop_string(fdt, tmp, "enable-method", "psci");
}
- /*
- * The PSCI node might be called "/psci" or might be called something
- * else but contain either of the compatible strings
- * "arm,psci"/"arm,psci-0.2"
- */
nodeoff = fdt_path_offset(fdt, "/psci");
if (nodeoff >= 0)
goto init_psci_node;
- nodeoff = fdt_node_offset_by_compatible(fdt, -1, "arm,psci");
- if (nodeoff >= 0)
- goto init_psci_node;
-
- nodeoff = fdt_node_offset_by_compatible(fdt, -1, "arm,psci-0.2");
- if (nodeoff >= 0)
- goto init_psci_node;
-
- nodeoff = fdt_node_offset_by_compatible(fdt, -1, "arm,psci-1.0");
- if (nodeoff >= 0)
- goto init_psci_node;
-
nodeoff = fdt_path_offset(fdt, "/");
if (nodeoff < 0)
return nodeoff;