Skip to content
Snippets Groups Projects
Commit 388aabc8 authored by Hou Zhiqiang's avatar Hou Zhiqiang Committed by York Sun
Browse files

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: default avatarHou Zhiqiang <Zhiqiang.Hou@nxp.com>
Reviewed-by: default avatarYork Sun <york.sun@nxp.com>
parent 8936691b
No related branches found
No related tags found
No related merge requests found
...@@ -51,27 +51,10 @@ int fdt_psci(void *fdt) ...@@ -51,27 +51,10 @@ int fdt_psci(void *fdt)
fdt_setprop_string(fdt, tmp, "enable-method", "psci"); 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"); nodeoff = fdt_path_offset(fdt, "/psci");
if (nodeoff >= 0) if (nodeoff >= 0)
goto init_psci_node; 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, "/"); nodeoff = fdt_path_offset(fdt, "/");
if (nodeoff < 0) if (nodeoff < 0)
return nodeoff; return nodeoff;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment