>From 07880b3410ad19962d16ce1415f0423dfeed17da Mon Sep 17 00:00:00 2001
From: Fernando Guzman Lugo <[email protected]>
Date: Fri, 5 Feb 2010 01:35:35 -0600
Subject: [PATCH] DSPBRIDGE: Replace page_address with kmap

Replace page_address with kmap to get address in case of high mem allocation.

Signed-off-by: Fernando Guzman Lugo <[email protected]>
---
 drivers/dsp/bridge/rmgr/proc.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/dsp/bridge/rmgr/proc.c b/drivers/dsp/bridge/rmgr/proc.c
index 4f179ac..72c86df 100644
--- a/drivers/dsp/bridge/rmgr/proc.c
+++ b/drivers/dsp/bridge/rmgr/proc.c
@@ -585,11 +585,11 @@ static int memory_sync_page(struct vm_area_struct *vma, 
unsigned long start,
                }
 
                offset = start & ~PAGE_MASK;
-               kaddr = page_address(page) + offset;
+               kaddr = kmap(page) + offset;
                rest = min_t(ssize_t, PAGE_SIZE - offset, len);
-
                MEM_FlushCache(kaddr, rest, ftype);
 
+               kunmap(page);
                put_page(page);
                len -= rest;
                start += rest;
-- 
1.6.0.4
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to