forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-31 f9004dbfff8a3fbbd7e2a88c8a4327c7f2f8e5b2
kernel/arch/arm/mach-sunxi/mc_smp.c
....@@ -89,6 +89,7 @@
8989 {
9090 struct device_node *node;
9191 int cpu = cluster * SUNXI_CPUS_PER_CLUSTER + core;
92
+ bool is_compatible;
9293
9394 node = of_cpu_device_node_get(cpu);
9495
....@@ -107,7 +108,9 @@
107108 return false;
108109 }
109110
110
- return of_device_is_compatible(node, "arm,cortex-a15");
111
+ is_compatible = of_device_is_compatible(node, "arm,cortex-a15");
112
+ of_node_put(node);
113
+ return is_compatible;
111114 }
112115
113116 static int sunxi_cpu_power_switch_set(unsigned int cpu, unsigned int cluster,