Skip to content

Commit

Permalink
ACPI atomicio: Convert width in bits to bytes in __acpi_ioremap_fast()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Luck, Tony authored and Len Brown committed Nov 7, 2011
1 parent c3b92c8 commit 3bf3f8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/acpi/atomicio.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3bf3f8b

Please sign in to comment.