summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorJan Beulich <JBeulich@suse.com>2012-02-24 11:41:53 +0000
committerLen Brown <len.brown@intel.com>2012-03-30 03:51:57 -0400
commite252675fb722d4a307cc380a06a905f03cf9951c (patch)
tree0be44fc9eb7ab21b021b13f32bfdd8806d99488d /drivers
parent89e96ada572fb216e582dbe3f64e1a6939a37f74 (diff)
downloadlinux-e252675fb722d4a307cc380a06a905f03cf9951c.tar.bz2
ACPI: consistently use should_use_kmap()
... so that acpi_unmap()'s behavior gets in sync with acpi_map()'s. Signed-off-by: Jan Beulich <jbeulich@suse.com> Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/acpi/osl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/acpi/osl.c b/drivers/acpi/osl.c
index 412a1e04a922..5aef087d42d0 100644
--- a/drivers/acpi/osl.c
+++ b/drivers/acpi/osl.c
@@ -347,7 +347,7 @@ static void acpi_unmap(acpi_physical_address pg_off, void __iomem *vaddr)
unsigned long pfn;
pfn = pg_off >> PAGE_SHIFT;
- if (page_is_ram(pfn))
+ if (should_use_kmap(pfn))
kunmap(pfn_to_page(pfn));
else
iounmap(vaddr);