summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuck, Tony <tony.luck@intel.com>2011-10-21 14:42:55 -0700
committerGreg Kroah-Hartman <gregkh@suse.de>2011-11-11 09:44:42 -0800
commit97a83dd85386b78ca2e6e14442fece6a45eabdd2 (patch)
treed06c4167315c1582b6daca8fafc92e0d7b7f07e9
parent3493ce844f598f2b732a7e831afb6b1d5be4296f (diff)
downloadlinux-stable-97a83dd85386b78ca2e6e14442fece6a45eabdd2.tar.gz
linux-stable-97a83dd85386b78ca2e6e14442fece6a45eabdd2.tar.bz2
linux-stable-97a83dd85386b78ca2e6e14442fece6a45eabdd2.zip
ACPI atomicio: Convert width in bits to bytes in __acpi_ioremap_fast()
commit 3bf3f8b19d2bfccc40f13c456bf339fd8f535ebc upstream. 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. Signed-off-by: Tony Luck <tony.luck@intel.com> Signed-off-by: Len Brown <len.brown@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r--drivers/acpi/atomicio.c2
1 files changed, 1 insertions, 1 deletions
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