kernel/arch/arm/mach-sunxi/mc_smp.c
.. .. @@ -89,6 +89,7 @@ 89 89 { 90 90 struct device_node *node; 91 91 int cpu = cluster * SUNXI_CPUS_PER_CLUSTER + core; 92 + bool is_compatible;92 93 93 94 node = of_cpu_device_node_get(cpu); 94 95 .. .. @@ -107,7 +108,9 @@ 107 108 return false; 108 109 } 109 110 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;111 114 } 112 115 113 116 static int sunxi_cpu_power_switch_set(unsigned int cpu, unsigned int cluster,