pci/of: Match PCI devices to OF nodes dynamically
[deliverable/linux.git] / arch / powerpc / platforms / powermac / pci.c
index f33e08d573ce6b27722b118882a539b5895a914e..abe8d7e2ebeb53c76d118576021ed186f2a29b50 100644 (file)
@@ -17,6 +17,7 @@
 #include <linux/init.h>
 #include <linux/bootmem.h>
 #include <linux/irq.h>
+#include <linux/of_pci.h>
 
 #include <asm/sections.h>
 #include <asm/io.h>
@@ -235,7 +236,7 @@ static int chaos_validate_dev(struct pci_bus *bus, int devfn, int offset)
 
        if (offset >= 0x100)
                return  PCIBIOS_BAD_REGISTER_NUMBER;
-       np = pci_busdev_to_OF_node(bus, devfn);
+       np = of_pci_find_child_device(bus->dev.of_node, devfn);
        if (np == NULL)
                return PCIBIOS_DEVICE_NOT_FOUND;
 
This page took 0.024622 seconds and 5 git commands to generate.