diff options
author | Jan Beulich <JBeulich@suse.com> | 2012-02-24 06:41:53 -0500 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2012-03-30 03:51:57 -0400 |
commit | e252675fb722d4a307cc380a06a905f03cf9951c (patch) | |
tree | 0be44fc9eb7ab21b021b13f32bfdd8806d99488d /drivers/acpi | |
parent | 89e96ada572fb216e582dbe3f64e1a6939a37f74 (diff) |
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/acpi')
-rw-r--r-- | drivers/acpi/osl.c | 2 |
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) | |||
347 | unsigned long pfn; | 347 | unsigned long pfn; |
348 | 348 | ||
349 | pfn = pg_off >> PAGE_SHIFT; | 349 | pfn = pg_off >> PAGE_SHIFT; |
350 | if (page_is_ram(pfn)) | 350 | if (should_use_kmap(pfn)) |
351 | kunmap(pfn_to_page(pfn)); | 351 | kunmap(pfn_to_page(pfn)); |
352 | else | 352 | else |
353 | iounmap(vaddr); | 353 | iounmap(vaddr); |