From patchwork Mon Feb 8 22:14:59 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Guzman Lugo, Fernando" X-Patchwork-Id: 77862 X-Patchwork-Delegate: omar.ramirez@ti.com Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o18MDtxh000835 for ; Mon, 8 Feb 2010 22:15:04 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751458Ab0BHWPD (ORCPT ); Mon, 8 Feb 2010 17:15:03 -0500 Received: from bear.ext.ti.com ([192.94.94.41]:51419 "EHLO bear.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750859Ab0BHWPB convert rfc822-to-8bit (ORCPT ); Mon, 8 Feb 2010 17:15:01 -0500 Received: from dlep36.itg.ti.com ([157.170.170.91]) by bear.ext.ti.com (8.13.7/8.13.7) with ESMTP id o18MEwnp028544 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 8 Feb 2010 16:14:59 -0600 Received: from dlep26.itg.ti.com (localhost [127.0.0.1]) by dlep36.itg.ti.com (8.13.8/8.13.8) with ESMTP id o18MEw9X001908; Mon, 8 Feb 2010 16:14:58 -0600 (CST) Received: from dlee73.ent.ti.com (localhost [127.0.0.1]) by dlep26.itg.ti.com (8.13.8/8.13.8) with ESMTP id o18MEwUK000580; Mon, 8 Feb 2010 16:14:58 -0600 (CST) Received: from dlee06.ent.ti.com ([157.170.170.11]) by dlee73.ent.ti.com ([157.170.170.88]) with mapi; Mon, 8 Feb 2010 16:14:58 -0600 From: "Guzman Lugo, Fernando" To: linux-omap CC: Ameya Palande , Hiroshi Doyu , Felipe Contreras , Andy Shevchenko Date: Mon, 8 Feb 2010 16:14:59 -0600 Subject: DSPBRIDGE: Replace page_address with kmap Thread-Topic: DSPBRIDGE: Replace page_address with kmap Thread-Index: AcqpDCcQ55fNC4JxScG2rZOAx+NgIA== Message-ID: <496565EC904933469F292DDA3F1663E602AA6587B3@dlee06.ent.ti.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US MIME-Version: 1.0 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Mon, 08 Feb 2010 22:15:04 +0000 (UTC) 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;