From: Matt Fleming Date: Thu, 29 Oct 2009 21:53:30 +0000 (+0000) Subject: sh: Do not apply virt_to_phys() to a physical address X-Git-Tag: upstream/snapshot3+hdmi~16124^2~62^2~40 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=eb3118f652ea7751ecf6a7e467bb637895e3be3b;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git sh: Do not apply virt_to_phys() to a physical address The variable 'phys' already contains the physical address to flush. It is not a virtual address and should not be passed to virt_to_phys(). Signed-off-by: Matt Fleming Signed-off-by: Paul Mundt --- diff --git a/arch/sh/mm/cache-sh4.c b/arch/sh/mm/cache-sh4.c index 4a2fbf2..b5abe94 100644 --- a/arch/sh/mm/cache-sh4.c +++ b/arch/sh/mm/cache-sh4.c @@ -95,8 +95,7 @@ static inline void flush_cache_one(unsigned long start, unsigned long phys) exec_offset = cached_to_uncached; local_irq_save(flags); - __flush_cache_one(start | SH_CACHE_ASSOC, - virt_to_phys(phys), exec_offset); + __flush_cache_one(start | SH_CACHE_ASSOC, phys, exec_offset); local_irq_restore(flags); }