From patchwork Fri Jan 7 06:02:31 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Len Brown X-Patchwork-Id: 462711 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p075xlSb011252 for ; Fri, 7 Jan 2011 06:02:37 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753810Ab1AGGCh (ORCPT ); Fri, 7 Jan 2011 01:02:37 -0500 Received: from vms173011pub.verizon.net ([206.46.173.11]:52620 "EHLO vms173011pub.verizon.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751988Ab1AGGCg (ORCPT ); Fri, 7 Jan 2011 01:02:36 -0500 Received: from localhost.localdomain ([unknown] [108.7.186.163]) by vms173011.mailsrvcs.net (Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009)) with ESMTPA id <0LEN00EOV24BTGA2@vms173011.mailsrvcs.net>; Fri, 07 Jan 2011 00:02:36 -0600 (CST) Received: from localhost.localdomain (x980 [127.0.0.1]) by localhost.localdomain (8.14.4/8.14.4) with ESMTP id p0762XPK003401; Fri, 07 Jan 2011 01:02:33 -0500 Received: from localhost (lenb@localhost) by localhost.localdomain (8.14.4/8.14.4/Submit) with ESMTP id p0762V4N003397; Fri, 07 Jan 2011 01:02:31 -0500 X-Authentication-warning: localhost.localdomain: lenb owned process doing -bs Date: Fri, 07 Jan 2011 01:02:31 -0500 (EST) From: Len Brown X-X-Sender: lenb@x980 To: "Rafael J. Wysocki" Cc: ACPI Devel Maling List , LKML , Linux-pm mailing list , Jiri Slaby Subject: Re: [PATCH 4/5] ACPI / PM: Make suspend_nvs_save() use acpi_os_map_memory() In-reply-to: Message-id: References: <201101070141.02951.rjw@sisk.pl> <201101070145.58907.rjw@sisk.pl> User-Agent: Alpine 2.02 (LFD 1266 2009-07-14) MIME-version: 1.0 Content-type: TEXT/PLAIN; charset=US-ASCII Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Fri, 07 Jan 2011 06:02:37 +0000 (UTC) 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; } }