diff options
author | David S. Miller <davem@sunset.davemloft.net> | 2007-03-01 21:09:18 -0500 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-03-02 18:22:51 -0500 |
commit | f6d0f9ea55277a49ef6c86a768acec021451b139 (patch) | |
tree | b226be7439b37d25120fb767422876cf5b257d35 /arch/sparc64/kernel/pci.c | |
parent | 45bcca67ed6437815305fdef38f441358b6a7756 (diff) |
[SPARC]: Provide pci_device_to_OF_node() just like powerpc.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc64/kernel/pci.c')
-rw-r--r-- | arch/sparc64/kernel/pci.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/sparc64/kernel/pci.c b/arch/sparc64/kernel/pci.c index 6fedfb98f8b0..196b4b72482b 100644 --- a/arch/sparc64/kernel/pci.c +++ b/arch/sparc64/kernel/pci.c | |||
@@ -681,4 +681,12 @@ void arch_teardown_msi_irq(unsigned int virt_irq) | |||
681 | } | 681 | } |
682 | #endif /* !(CONFIG_PCI_MSI) */ | 682 | #endif /* !(CONFIG_PCI_MSI) */ |
683 | 683 | ||
684 | struct device_node *pci_device_to_OF_node(struct pci_dev *pdev) | ||
685 | { | ||
686 | struct pcidev_cookie *pc = pdev->sysdata; | ||
687 | |||
688 | return pc->op->node; | ||
689 | } | ||
690 | EXPORT_SYMBOL(pci_device_to_OF_node); | ||
691 | |||
684 | #endif /* !(CONFIG_PCI) */ | 692 | #endif /* !(CONFIG_PCI) */ |