Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261759AbVAYCk2 (ORCPT ); Mon, 24 Jan 2005 21:40:28 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261775AbVAYCi5 (ORCPT ); Mon, 24 Jan 2005 21:38:57 -0500 Received: from gate.crashing.org ([63.228.1.57]:21437 "EHLO gate.crashing.org") by vger.kernel.org with ESMTP id S261776AbVAYCgN (ORCPT ); Mon, 24 Jan 2005 21:36:13 -0500 Subject: [PATCH] ppc64: Missing call to ioremap in pci_iomap() From: Benjamin Herrenschmidt To: Kumar Gala Cc: Andrew Morton , linuxppc-embedded@ozlabs.org, rvinson@mvista.com, linuxppc-dev list , Linux Kernel list In-Reply-To: References: Content-Type: text/plain Date: Tue, 25 Jan 2005 13:35:33 +1100 Message-Id: <1106620533.21888.1.camel@gaston> Mime-Version: 1.0 X-Mailer: Evolution 2.0.3 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1116 Lines: 33 On Mon, 2005-01-24 at 15:46 -0600, Kumar Gala wrote: > The PPC version of pci_iomap seems to be missing a call to ioremap. This > patch corrects that oversight and has been tested on a IBM PPC750FX Eval > board. Looks like the ppc64 version as well ! This patch adds the missing ioremap call to pci_iomap on ppc64. Signed-off-by: Benjamin Herrenschmidt Index: linux-work/arch/ppc64/kernel/iomap.c =================================================================== --- linux-work.orig/arch/ppc64/kernel/iomap.c 2005-01-24 11:42:36.000000000 +1100 +++ linux-work/arch/ppc64/kernel/iomap.c 2005-01-25 13:33:13.000000000 +1100 @@ -113,7 +113,7 @@ if (flags & IORESOURCE_IO) return ioport_map(start, len); if (flags & IORESOURCE_MEM) - return (void __iomem *) start; + return ioremap(start, len); /* What? */ return NULL; } - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/