diff mbox

[11/14] sh: Use page_to_phys() to get the physical address of a page

Message ID d620fb66e676d5aefe201035330d3e974e5d8bc7.1254861984.git.matt@console-pimps.org (mailing list archive)
State Not Applicable
Headers show

Commit Message

Matt Fleming Oct. 6, 2009, 9:22 p.m. UTC
None
diff mbox

Patch

diff --git a/arch/sh/mm/cache-sh4.c b/arch/sh/mm/cache-sh4.c
index 5b73b37..0bad81c 100644
--- a/arch/sh/mm/cache-sh4.c
+++ b/arch/sh/mm/cache-sh4.c
@@ -123,7 +123,7 @@  static void sh4_flush_dcache_page(void *arg)
 	else
 #endif
 	{
-		unsigned long phys = __pa(page_address(page));
+		unsigned long phys = page_to_phys(page);
 		unsigned long addr = CACHE_OC_ADDRESS_ARRAY;
 		int i, n;