From patchwork Thu Oct 21 20:23:48 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Myron Stowe X-Patchwork-Id: 272101 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 o9LKO0Zj005697 for ; Thu, 21 Oct 2010 20:24:02 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756812Ab0JUUXu (ORCPT ); Thu, 21 Oct 2010 16:23:50 -0400 Received: from g4t0015.houston.hp.com ([15.201.24.18]:43625 "EHLO g4t0015.houston.hp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756744Ab0JUUXt (ORCPT ); Thu, 21 Oct 2010 16:23:49 -0400 Received: from g4t0009.houston.hp.com (g4t0009.houston.hp.com [16.234.32.26]) by g4t0015.houston.hp.com (Postfix) with ESMTP id 2A7EC8749; Thu, 21 Oct 2010 20:23:49 +0000 (UTC) Received: from ldl (ldl.usa.hp.com [16.125.112.222]) by g4t0009.houston.hp.com (Postfix) with ESMTP id 1A85BC0A3; Thu, 21 Oct 2010 20:23:49 +0000 (UTC) Received: from localhost (ldl.fc.hp.com [127.0.0.1]) by ldl (Postfix) with ESMTP id F345ACF0022; Thu, 21 Oct 2010 14:23:48 -0600 (MDT) Received: from ldl ([127.0.0.1]) by localhost (ldl.fc.hp.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id lNH9GbdI-0qS; Thu, 21 Oct 2010 14:23:48 -0600 (MDT) Received: from eh.fc.hp.com (bob.lnx.usa.hp.com [16.125.112.218]) by ldl (Postfix) with ESMTP id DD7B0CF0020; Thu, 21 Oct 2010 14:23:48 -0600 (MDT) Received: from bob.kio (localhost [127.0.0.1]) by eh.fc.hp.com (Postfix) with ESMTP id BED0826151; Thu, 21 Oct 2010 14:23:48 -0600 (MDT) Subject: [PATCH 1/7] ACPI: Fix ioremap size for MMIO reads and writes To: lenb@kernel.org From: Myron Stowe Cc: linux-acpi@vger.kernel.org, ak@linux.intel.com, ying.huang@intel.com Date: Thu, 21 Oct 2010 14:23:48 -0600 Message-ID: <20101021202348.9220.57786.stgit@bob.kio> In-Reply-To: <20101021201916.9220.5711.stgit@bob.kio> References: <20101021201916.9220.5711.stgit@bob.kio> User-Agent: StGit/0.15 MIME-Version: 1.0 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.3 (demeter1.kernel.org [140.211.167.41]); Thu, 21 Oct 2010 20:24:02 +0000 (UTC) diff --git a/drivers/acpi/osl.c b/drivers/acpi/osl.c index 65b25a3..58842fb 100644 --- a/drivers/acpi/osl.c +++ b/drivers/acpi/osl.c @@ -496,7 +496,7 @@ acpi_os_read_memory(acpi_physical_address phys_addr, u32 * value, u32 width) u32 dummy; void __iomem *virt_addr; - virt_addr = ioremap(phys_addr, width); + virt_addr = ioremap(phys_addr, width / 8); if (!value) value = &dummy; @@ -524,7 +524,7 @@ acpi_os_write_memory(acpi_physical_address phys_addr, u32 value, u32 width) { void __iomem *virt_addr; - virt_addr = ioremap(phys_addr, width); + virt_addr = ioremap(phys_addr, width / 8); switch (width) { case 8: