summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/platforms/40x/walnut.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/powerpc/platforms/40x/walnut.c')
-rw-r--r--arch/powerpc/platforms/40x/walnut.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/powerpc/platforms/40x/walnut.c b/arch/powerpc/platforms/40x/walnut.c
index f7ac2d0fcb44..e5797815e2f1 100644
--- a/arch/powerpc/platforms/40x/walnut.c
+++ b/arch/powerpc/platforms/40x/walnut.c
@@ -46,9 +46,7 @@ machine_device_initcall(walnut, walnut_device_probe);
static int __init walnut_probe(void)
{
- unsigned long root = of_get_flat_dt_root();
-
- if (!of_flat_dt_is_compatible(root, "ibm,walnut"))
+ if (!of_machine_is_compatible("ibm,walnut"))
return 0;
pci_set_flags(PCI_REASSIGN_ALL_RSRC);