Re: [patch v2 28/35] Hexagon: Add ioremap support

Arnd Bergmann
2011-08-31T14:53:44Z

On Tuesday 30 August 2011, Richard Kuo wrote:
> Signed-off-by: Richard Kuo <rkuo@codeaurora.org>

Acked-by: Arnd Bergmann <arnd@arndb.de>

> + if (ioremap_page_range(addr, addr+size, phys_addr, prot)) {
> + vunmap((void *)addr);
> + return NULL;
> + }
> +
> + flush_cache_vmap(addr, addr+size);

I think that ioremap_page_range implies the flush_cache_vmap already,
so there is no reason to do it again.

Arnd