From: linux@arm.linux.org.uk (Russell King - ARM Linux)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCHv5 3/4] omap: iovmm - replace __iounmap with omap_iounmap
Date: Thu, 2 Dec 2010 12:32:02 +0000 [thread overview]
Message-ID: <20101202123202.GA10461@n2100.arm.linux.org.uk> (raw)
In-Reply-To: <1288033806-1496-4-git-send-email-x0095840@ti.com>
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 <x0095840@ti.com>
> ---
> 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)
next prev parent reply other threads:[~2010-12-02 12:32 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-25 19:10 [PATCHv5 0/4] omap: iovmm - fixes for iovmm module Fernando Guzman Lugo
2010-10-25 19:10 ` [PATCHv5 1/4] omap: iovmm - no gap checking for fixed address Fernando Guzman Lugo
2010-10-25 19:10 ` [PATCHv5 2/4] omap: iovmm - add superpages support to fixed da address Fernando Guzman Lugo
2010-10-25 19:10 ` [PATCHv5 3/4] omap: iovmm - replace __iounmap with omap_iounmap Fernando Guzman Lugo
2010-10-25 19:10 ` [PATCHv5 4/4] omap: iommu - create new api to set valid da range Fernando Guzman Lugo
2010-12-02 12:32 ` Russell King - ARM Linux [this message]
2010-11-29 8:47 ` [PATCHv5 0/4] omap: iovmm - fixes for iovmm module Hiroshi DOYU
2010-12-01 19:27 ` Felipe Contreras
2010-12-02 1:36 ` Guzman Lugo, Fernando
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20101202123202.GA10461@n2100.arm.linux.org.uk \
--to=linux@arm.linux.org.uk \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).