ACPI atomicio: Convert width in bits to bytes in __acpi_ioremap_fast()
authorLuck, Tony <tony.luck@intel.com>
Fri, 21 Oct 2011 21:42:55 +0000 (14:42 -0700)
committerLen Brown <len.brown@intel.com>
Mon, 7 Nov 2011 01:30:23 +0000 (20:30 -0500)
Callers to __acpi_ioremap_fast() pass the bit_width that they found in the
acpi_generic_address structure. Convert from bits to bytes when passing to
__acpi_find_iomap() - as it wants to see bytes, not bits.

cc: stable@kernel.org
Signed-off-by: Tony Luck <tony.luck@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/atomicio.c

index 7489b89c300fc3b0ab2f0a55c2bc09ead5e2c738..f151afe61aabca96f17bb92dfdbc7e855ad08620 100644 (file)
@@ -76,7 +76,7 @@ static void __iomem *__acpi_ioremap_fast(phys_addr_t paddr,
 {
        struct acpi_iomap *map;
 
-       map = __acpi_find_iomap(paddr, size);
+       map = __acpi_find_iomap(paddr, size/8);
        if (map)
                return map->vaddr + (paddr - map->paddr);
        else