From: Luck, Tony Date: Fri, 21 Oct 2011 21:42:55 +0000 (-0700) Subject: ACPI atomicio: Convert width in bits to bytes in __acpi_ioremap_fast() X-Git-Tag: drm-fsl-dcu-for-next~11212^2~2 X-Git-Url: http://git.agner.ch/gitweb/?a=commitdiff_plain;h=3bf3f8b19d2bfccc40f13c456bf339fd8f535ebc;p=linux-drm-fsl-dcu.git ACPI atomicio: Convert width in bits to bytes in __acpi_ioremap_fast() 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 Signed-off-by: Len Brown --- diff --git a/drivers/acpi/atomicio.c b/drivers/acpi/atomicio.c index 7489b89c300f..f151afe61aab 100644 --- a/drivers/acpi/atomicio.c +++ b/drivers/acpi/atomicio.c @@ -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