aboutsummaryrefslogtreecommitdiffstats
path: root/arch/cris/arch-v32
diff options
context:
space:
mode:
authorBjorn Helgaas <bhelgaas@google.com>2012-06-20 08:12:02 -0400
committerJesper Nilsson <jespern@axis.com>2012-10-03 03:56:42 -0400
commit227c6fc296cb84577a4ec54b3c682d48a9ca09b3 (patch)
tree3c4aec4925aba9e5e07c1ba94a76ae38bc292f10 /arch/cris/arch-v32
parent485802a6c524e62b5924849dd727ddbb1497cc71 (diff)
cris/PCI: remove pcibios_assign_resources()
There's no caller of pcibios_assign_resources() in the tree. It is exported, so an out-of-tree module *could* call it, but no other arch exports pcibios_assign_resources(), so it would have to be a CRIS-specific module. I doubt such a caller exists. CC: Mikael Starvik <starvik@axis.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Signed-off-by: Jesper Nilsson <jesper.nilsson@axis.com>
Diffstat (limited to 'arch/cris/arch-v32')
-rw-r--r--arch/cris/arch-v32/drivers/pci/bios.c25
1 files changed, 0 insertions, 25 deletions
diff --git a/arch/cris/arch-v32/drivers/pci/bios.c b/arch/cris/arch-v32/drivers/pci/bios.c
index bc0cfdad1cbc..f748cedfa191 100644
--- a/arch/cris/arch-v32/drivers/pci/bios.c
+++ b/arch/cris/arch-v32/drivers/pci/bios.c
@@ -102,28 +102,3 @@ int pcibios_enable_device(struct pci_dev *dev, int mask)
102 pcibios_enable_irq(dev); 102 pcibios_enable_irq(dev);
103 return 0; 103 return 0;
104} 104}
105
106int pcibios_assign_resources(void)
107{
108 struct pci_dev *dev = NULL;
109 int idx;
110 struct resource *r;
111
112 while ((dev = pci_get_device(PCI_ANY_ID, PCI_ANY_ID, dev)) != NULL) {
113 int class = dev->class >> 8;
114
115 /* Don't touch classless devices and host bridges */
116 if (!class || class == PCI_CLASS_BRIDGE_HOST)
117 continue;
118
119 for(idx=0; idx<6; idx++) {
120 r = &dev->resource[idx];
121
122 if (!r->start && r->end)
123 pci_assign_resource(dev, idx);
124 }
125 }
126 return 0;
127}
128
129EXPORT_SYMBOL(pcibios_assign_resources);