aboutsummaryrefslogtreecommitdiffstats
path: root/arch/parisc
diff options
context:
space:
mode:
authorKyle McMartin <kyle@shortfin.cabal.ca>2007-10-20 00:41:33 -0400
committerKyle McMartin <kyle@shortfin.cabal.ca>2007-10-20 00:41:33 -0400
commit7425ada2d07b0bdc082f34069eadbbe5a8e465d2 (patch)
treed7b216191b793a8585e65d6ea1441801d67e3ce0 /arch/parisc
parent9430d374bd4b099734a63c3699a128fe58e0bed3 (diff)
[PARISC] Zap unused variable warnings in pci.c
'bus' was basically useless and 'hba' is only applicable on 64bit. Sigh, there's got to be a cleaner way to do this... Signed-off-by: Kyle McMartin <kyle@mcmartin.ca>
Diffstat (limited to 'arch/parisc')
-rw-r--r--arch/parisc/kernel/pci.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/arch/parisc/kernel/pci.c b/arch/parisc/kernel/pci.c
index 8263d490b1b7..507d0ac99f66 100644
--- a/arch/parisc/kernel/pci.c
+++ b/arch/parisc/kernel/pci.c
@@ -198,8 +198,9 @@ void __init pcibios_init_bus(struct pci_bus *bus)
198void __devinit pcibios_resource_to_bus(struct pci_dev *dev, 198void __devinit pcibios_resource_to_bus(struct pci_dev *dev,
199 struct pci_bus_region *region, struct resource *res) 199 struct pci_bus_region *region, struct resource *res)
200{ 200{
201 struct pci_bus *bus = dev->bus; 201#ifdef CONFIG_64BIT
202 struct pci_hba_data *hba = HBA_DATA(bus->bridge->platform_data); 202 struct pci_hba_data *hba = HBA_DATA(dev->bus->bridge->platform_data);
203#endif
203 204
204 if (res->flags & IORESOURCE_IO) { 205 if (res->flags & IORESOURCE_IO) {
205 /* 206 /*
@@ -218,7 +219,7 @@ void __devinit pcibios_resource_to_bus(struct pci_dev *dev,
218 } 219 }
219 220
220 DBG_RES("pcibios_resource_to_bus(%02x %s [%lx,%lx])\n", 221 DBG_RES("pcibios_resource_to_bus(%02x %s [%lx,%lx])\n",
221 bus->number, res->flags & IORESOURCE_IO ? "IO" : "MEM", 222 dev->bus->number, res->flags & IORESOURCE_IO ? "IO" : "MEM",
222 region->start, region->end); 223 region->start, region->end);
223} 224}
224 225
@@ -226,8 +227,7 @@ void pcibios_bus_to_resource(struct pci_dev *dev, struct resource *res,
226 struct pci_bus_region *region) 227 struct pci_bus_region *region)
227{ 228{
228#ifdef CONFIG_64BIT 229#ifdef CONFIG_64BIT
229 struct pci_bus *bus = dev->bus; 230 struct pci_hba_data *hba = HBA_DATA(dev->bus->bridge->platform_data);
230 struct pci_hba_data *hba = HBA_DATA(bus->bridge->platform_data);
231#endif 231#endif
232 232
233 if (res->flags & IORESOURCE_MEM) { 233 if (res->flags & IORESOURCE_MEM) {