Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757491Ab0LBMcY (ORCPT ); Thu, 2 Dec 2010 07:32:24 -0500 Received: from caramon.arm.linux.org.uk ([78.32.30.218]:48019 "EHLO caramon.arm.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757253Ab0LBMcW (ORCPT ); Thu, 2 Dec 2010 07:32:22 -0500 Date: Thu, 2 Dec 2010 12:32:02 +0000 From: Russell King - ARM Linux To: Fernando Guzman Lugo Cc: Hiroshi.DOYU@nokia.com, tony@atomide.com, linux-kernel@vger.kernel.org, felipe.contreras@nokia.com, andy.shevchenko@gmail.com, linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCHv5 3/4] omap: iovmm - replace __iounmap with omap_iounmap Message-ID: <20101202123202.GA10461@n2100.arm.linux.org.uk> References: <1288033806-1496-1-git-send-email-x0095840@ti.com> <1288033806-1496-2-git-send-email-x0095840@ti.com> <1288033806-1496-3-git-send-email-x0095840@ti.com> <1288033806-1496-4-git-send-email-x0095840@ti.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1288033806-1496-4-git-send-email-x0095840@ti.com> User-Agent: Mutt/1.5.19 (2009-01-05) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1555 Lines: 40 On Mon, Oct 25, 2010 at 02:10:05PM -0500, Fernando Guzman Lugo wrote: > Omap platform is omap_iounmap function. > > Signed-off-by: Fernando Guzman Lugo > --- > arch/arm/plat-omap/iovmm.c | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/arch/arm/plat-omap/iovmm.c b/arch/arm/plat-omap/iovmm.c > index 93a34d9..5489ca9 100644 > --- a/arch/arm/plat-omap/iovmm.c > +++ b/arch/arm/plat-omap/iovmm.c > @@ -821,7 +821,7 @@ void iommu_kunmap(struct iommu *obj, u32 da) > struct sg_table *sgt; > typedef void (*func_t)(const void *); > > - sgt = unmap_vm_area(obj, da, (func_t)__iounmap, > + sgt = unmap_vm_area(obj, da, (func_t)omap_iounmap, > IOVMF_LINEAR | IOVMF_MMIO); > if (!sgt) > dev_dbg(obj->dev, "%s: No sgt\n", __func__); Err, this is wrong. Why are you breaking the layer separation and going for the implementation detail of iounmap()? plat/io.h: #define __arch_ioremap(p,s,t) omap_ioremap(p,s,t) #define __arch_iounmap(v) omap_iounmap(v) void __iomem *omap_ioremap(unsigned long phys, size_t size, unsigned int type); void omap_iounmap(volatile void __iomem *addr); asm/io.h: #define ioremap(cookie,size) __arch_ioremap((cookie), (size), MT_DEVICE) #define iounmap(cookie) __arch_iounmap(cookie) -- 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/