summaryrefslogtreecommitdiffstats
path: root/arch/sparc/kernel/pcic.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@sunset.davemloft.net>2007-03-02 03:09:18 +0100
committerDavid S. Miller <davem@sunset.davemloft.net>2007-03-03 00:22:51 +0100
commitf6d0f9ea55277a49ef6c86a768acec021451b139 (patch)
treeb226be7439b37d25120fb767422876cf5b257d35 /arch/sparc/kernel/pcic.c
parent[SPARC]: Handle unresolvable resources better in of_device.c (diff)
downloadlinux-f6d0f9ea55277a49ef6c86a768acec021451b139.tar.xz
linux-f6d0f9ea55277a49ef6c86a768acec021451b139.zip
[SPARC]: Provide pci_device_to_OF_node() just like powerpc.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc/kernel/pcic.c')
-rw-r--r--arch/sparc/kernel/pcic.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/sparc/kernel/pcic.c b/arch/sparc/kernel/pcic.c
index 207f1b6eef53..3fa5f95c4614 100644
--- a/arch/sparc/kernel/pcic.c
+++ b/arch/sparc/kernel/pcic.c
@@ -944,6 +944,14 @@ int pcibios_assign_resource(struct pci_dev *pdev, int resource)
return -ENXIO;
}
+struct device_node *pci_device_to_OF_node(struct pci_dev *pdev)
+{
+ struct pcidev_cookie *pc = pdev->sysdata;
+
+ return pc->prom_node;
+}
+EXPORT_SYMBOL(pci_device_to_OF_node);
+
/*
* This probably belongs here rather than ioport.c because
* we do not want this crud linked into SBus kernels.