diff mbox

[4/5] ACPI / PM: Make suspend_nvs_save() use acpi_os_map_memory()

Message ID alpine.LFD.2.02.1101070100160.20858@x980 (mailing list archive)
State New, archived
Headers show

Commit Message

Len Brown Jan. 7, 2011, 6:02 a.m. UTC
None
diff mbox

Patch

diff --git a/drivers/acpi/nvs.c b/drivers/acpi/nvs.c
index 8e7ab5e..54b6ab8 100644
--- a/drivers/acpi/nvs.c
+++ b/drivers/acpi/nvs.c
@@ -80,7 +80,7 @@  void suspend_nvs_free(void)
 			free_page((unsigned long)entry->data);
 			entry->data = NULL;
 			if (entry->kaddr) {
-				iounmap(entry->kaddr);
+				acpi_os_unmap_memory(entry->kaddr, entry->size);
 				entry->kaddr = NULL;
 			}
 		}