]> err.no Git - linux-2.6/blobdiff - arch/parisc/kernel/pci.c
[PATCH] Add comments to the PDA structure to annotate offsets
[linux-2.6] / arch / parisc / kernel / pci.c
index d66d7cb1c0d9725804131932177db4fd169b6c30..d3b8fc52dfc1e130a2c9a6e621116c62ed8a74f7 100644 (file)
@@ -9,7 +9,6 @@
  * Copyright (C) 1999-2001 Hewlett-Packard Company
  * Copyright (C) 1999-2001 Grant Grundler
  */
-#include <linux/config.h>
 #include <linux/eisa.h>
 #include <linux/init.h>
 #include <linux/module.h>
@@ -258,8 +257,10 @@ void __devinit pcibios_resource_to_bus(struct pci_dev *dev,
 void pcibios_bus_to_resource(struct pci_dev *dev, struct resource *res,
                              struct pci_bus_region *region)
 {
+#ifdef CONFIG_64BIT
        struct pci_bus *bus = dev->bus;
        struct pci_hba_data *hba = HBA_DATA(bus->bridge->platform_data);
+#endif
 
        if (res->flags & IORESOURCE_MEM) {
                res->start = PCI_HOST_ADDR(hba, region->start);
@@ -287,7 +288,7 @@ EXPORT_SYMBOL(pcibios_bus_to_resource);
  * than res->start.
  */
 void pcibios_align_resource(void *data, struct resource *res,
-                               unsigned long size, unsigned long alignment)
+                               resource_size_t size, resource_size_t alignment)
 {
        unsigned long mask, align;