* addresses to be allocated in the 0x000-0x0ff region
   * modulo 0x400.
   */
 -void pcibios_align_resource(void *data, struct resource *res,
 -                          resource_size_t size, resource_size_t align)
 +resource_size_t pcibios_align_resource(void *data, const struct resource *res,
 +                              resource_size_t size, resource_size_t align)
  {
        struct pci_dev *dev = data;
-       struct pci_channel *chan = dev->sysdata;
+       struct pci_channel *hose = dev->sysdata;
        resource_size_t start = res->start;
  
        if (res->flags & IORESOURCE_IO) {
                /*
                   * Put everything into 0x00-0xff region modulo 0x400.
                 */
-               if (start & 0x300) {
+               if (start & 0x300)
                        start = (start + 0x3ff) & ~0x3ff;
-                       res->start = start;
-               }
-       } else if (res->flags & IORESOURCE_MEM) {
-               if (start < PCIBIOS_MIN_MEM + chan->mem_resource->start)
-                       start = PCIBIOS_MIN_MEM + chan->mem_resource->start;
        }
  
 -      res->start = start;
 +      return start;
  }
  
  void pcibios_resource_to_bus(struct pci_dev *dev, struct pci_bus_region *region,