Commit 69a94d84 authored by Benjamin Herrenschmidt's avatar Benjamin Herrenschmidt Committed by Michael Ellerman

powerpc/cell: Don't use flat device-tree after boot

Some bit of SPU code was using the FDT rather than the expanded
device-tree. Fix it.
Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
parent da6a97bf
...@@ -535,8 +535,7 @@ static int __init init_affinity(void) ...@@ -535,8 +535,7 @@ static int __init init_affinity(void)
if (of_has_vicinity()) { if (of_has_vicinity()) {
init_affinity_fw(); init_affinity_fw();
} else { } else {
long root = of_get_flat_dt_root(); if (of_machine_is_compatible("IBM,CPBW-1.0"))
if (of_flat_dt_is_compatible(root, "IBM,CPBW-1.0"))
init_affinity_qs20_harcoded(); init_affinity_qs20_harcoded();
else else
printk("No affinity configuration found\n"); printk("No affinity configuration found\n");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment