]> Pileus Git - ~andy/linux/blobdiff - arch/powerpc/kernel/pci_32.c
ath6kl: fix fw capability parsing
[~andy/linux] / arch / powerpc / kernel / pci_32.c
index fdd1a3d951dcaf50b5e63b72901ef507b9f19a90..4b06ec5a502e2ce47a31d7a6f3d9fa4b1d06bf72 100644 (file)
@@ -219,9 +219,9 @@ void __devinit pcibios_setup_phb_io_space(struct pci_controller *hose)
        struct resource *res = &hose->io_resource;
 
        /* Fixup IO space offset */
-       io_offset = (unsigned long)hose->io_base_virt - isa_io_base;
-       res->start = (res->start + io_offset) & 0xffffffffu;
-       res->end = (res->end + io_offset) & 0xffffffffu;
+       io_offset = pcibios_io_space_offset(hose);
+       res->start += io_offset;
+       res->end += io_offset;
 }
 
 static int __init pcibios_init(void)