public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Convert width in bits to bytes in __acpi_ioremap_fast()
@ 2011-10-21 21:42 Luck, Tony
  2011-10-25  2:48 ` Huang Ying
  2011-10-28  0:17 ` Thomas Renninger
  0 siblings, 2 replies; 9+ messages in thread
From: Luck, Tony @ 2011-10-21 21:42 UTC (permalink / raw)
  To: Len Brown; +Cc: linux-acpi, Huang Ying

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>
---
 drivers/acpi/atomicio.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/acpi/atomicio.c b/drivers/acpi/atomicio.c
index 252888f..70ffb71 100644
--- a/drivers/acpi/atomicio.c
+++ b/drivers/acpi/atomicio.c
@@ -78,7 +78,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
-- 
1.7.3.1


^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2011-11-07  3:28 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-21 21:42 [PATCH] Convert width in bits to bytes in __acpi_ioremap_fast() Luck, Tony
2011-10-25  2:48 ` Huang Ying
2011-10-25 13:57   ` Bjorn Helgaas
2011-10-25 18:39     ` Luck, Tony
2011-10-25 19:34       ` Bjorn Helgaas
2011-10-25 20:03         ` Myron Stowe
2011-10-28  0:17 ` Thomas Renninger
2011-11-07  1:29   ` Len Brown
2011-11-07  3:28     ` Luck, Tony

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox