]> err.no Git - linux-2.6/blobdiff - arch/x86/mm/ioremap.c
x86: introduce macro to check whether an address range is in the ISA range
[linux-2.6] / arch / x86 / mm / ioremap.c
index 7452eb31ed1278b96438e1866472bc239407b728..6d9960dd6f35e5ef522c7f9d0d4715d3e3a6365d 100644 (file)
@@ -142,7 +142,7 @@ static void __iomem *__ioremap_caller(resource_size_t phys_addr,
        /*
         * Don't remap the low PCI/ISA area, it's always mapped..
         */
-       if (phys_addr >= ISA_START_ADDRESS && last_addr < ISA_END_ADDRESS)
+       if (is_ISA_range(phys_addr, last_addr))
                return (__force void __iomem *)phys_to_virt(phys_addr);
 
        /*