diff options
author | Helge Deller <deller@parisc-linux.org> | 2006-01-15 13:52:22 -0500 |
---|---|---|
committer | Kyle McMartin <kyle@duet.int.mcmartin.ca> | 2006-01-22 20:26:43 -0500 |
commit | 96629c0b111dbb31d14338a55b7f650e9c490284 (patch) | |
tree | d60fb9813eb0f6a0bfa528eccf1d16d2a696fabb | |
parent | 10992092a8a6e445199f30e56789322851479019 (diff) |
[PARISC] Clean up compiler warning in pci.c
Avoid compiler warning for unused variables on 32bit kernels by
conditionalizing the local variables on CONFIG_64BIT. PCI_HOST_ADDR()
only uses the hba argument on 64bit compiles.
Signed-off-by: Helge Deller <deller@parisc-linux.org>
Signed-off-by: Kyle McMartin <kyle@parisc-linux.org>
-rw-r--r-- | arch/parisc/kernel/pci.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/parisc/kernel/pci.c b/arch/parisc/kernel/pci.c index d66d7cb1c0d9..79c7db2705fd 100644 --- a/arch/parisc/kernel/pci.c +++ b/arch/parisc/kernel/pci.c | |||
@@ -258,8 +258,10 @@ void __devinit pcibios_resource_to_bus(struct pci_dev *dev, | |||
258 | void pcibios_bus_to_resource(struct pci_dev *dev, struct resource *res, | 258 | void pcibios_bus_to_resource(struct pci_dev *dev, struct resource *res, |
259 | struct pci_bus_region *region) | 259 | struct pci_bus_region *region) |
260 | { | 260 | { |
261 | #ifdef CONFIG_64BIT | ||
261 | struct pci_bus *bus = dev->bus; | 262 | struct pci_bus *bus = dev->bus; |
262 | struct pci_hba_data *hba = HBA_DATA(bus->bridge->platform_data); | 263 | struct pci_hba_data *hba = HBA_DATA(bus->bridge->platform_data); |
264 | #endif | ||
263 | 265 | ||
264 | if (res->flags & IORESOURCE_MEM) { | 266 | if (res->flags & IORESOURCE_MEM) { |
265 | res->start = PCI_HOST_ADDR(hba, region->start); | 267 | res->start = PCI_HOST_ADDR(hba, region->start); |