]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - arch/arm64/kernel/smp_spin_table.c
ARM64: kernel: make cpu_ops hooks DT agnostic
[karo-tx-linux.git] / arch / arm64 / kernel / smp_spin_table.c
index 14944e5b28dace9ea083e74f4849d4f40eadef95..aef3605a8c47845ce2ce2d32f75e0fd59a8e4405 100644 (file)
@@ -49,8 +49,14 @@ static void write_pen_release(u64 val)
 }
 
 
-static int smp_spin_table_cpu_init(struct device_node *dn, unsigned int cpu)
+static int smp_spin_table_cpu_init(unsigned int cpu)
 {
+       struct device_node *dn;
+
+       dn = of_get_cpu_node(cpu, NULL);
+       if (!dn)
+               return -ENODEV;
+
        /*
         * Determine the address from which the CPU is polling.
         */