[SPARC]: Provide pci_device_to_OF_node() just like powerpc.
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
@@ -681,4 +681,12 @@ void arch_teardown_msi_irq(unsigned int virt_irq)
|
||||
}
|
||||
#endif /* !(CONFIG_PCI_MSI) */
|
||||
|
||||
struct device_node *pci_device_to_OF_node(struct pci_dev *pdev)
|
||||
{
|
||||
struct pcidev_cookie *pc = pdev->sysdata;
|
||||
|
||||
return pc->op->node;
|
||||
}
|
||||
EXPORT_SYMBOL(pci_device_to_OF_node);
|
||||
|
||||
#endif /* !(CONFIG_PCI) */
|
||||
|
Reference in New Issue
Block a user