|
@@ -176,22 +176,20 @@ static const struct of_device_id psci_of_match[] __initconst = {
|
|
|
{},
|
|
|
};
|
|
|
|
|
|
-int __init psci_init(void)
|
|
|
+void __init psci_init(void)
|
|
|
{
|
|
|
struct device_node *np;
|
|
|
const char *method;
|
|
|
u32 id;
|
|
|
- int err = 0;
|
|
|
|
|
|
np = of_find_matching_node(NULL, psci_of_match);
|
|
|
if (!np)
|
|
|
- return -ENODEV;
|
|
|
+ return;
|
|
|
|
|
|
pr_info("probing function IDs from device-tree\n");
|
|
|
|
|
|
if (of_property_read_string(np, "method", &method)) {
|
|
|
pr_warning("missing \"method\" property\n");
|
|
|
- err = -ENXIO;
|
|
|
goto out_put_node;
|
|
|
}
|
|
|
|
|
@@ -201,7 +199,6 @@ int __init psci_init(void)
|
|
|
invoke_psci_fn = __invoke_psci_fn_smc;
|
|
|
} else {
|
|
|
pr_warning("invalid \"method\" property: %s\n", method);
|
|
|
- err = -EINVAL;
|
|
|
goto out_put_node;
|
|
|
}
|
|
|
|
|
@@ -227,7 +224,7 @@ int __init psci_init(void)
|
|
|
|
|
|
out_put_node:
|
|
|
of_node_put(np);
|
|
|
- return err;
|
|
|
+ return;
|
|
|
}
|
|
|
|
|
|
#ifdef CONFIG_SMP
|