return bus->sysdata;
}
+#ifdef CONFIG_PPC_PMAC
extern int pci_device_from_OF_node(struct device_node *node,
u8 *bus, u8 *devfn);
+#endif
#ifndef CONFIG_PPC64
extern void pci_create_OF_bus_map(void);
}
+#ifdef CONFIG_PPC_PMAC
/*
* Returns the PCI device matching a given OF node
*/
return -ENODEV;
}
EXPORT_SYMBOL(pci_device_from_OF_node);
+#endif
/* We create the "pci-OF-bus-map" property now so it appears in the
* /proc device tree
EXPORT_SYMBOL(pcibus_to_node);
#endif
+#ifdef CONFIG_PPC_PMAC
int pci_device_from_OF_node(struct device_node *np, u8 *bus, u8 *devfn)
{
if (!PCI_DN(np))
*devfn = PCI_DN(np)->devfn;
return 0;
}
+#endif