From patchwork Wed Jan 27 18:13:14 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Gomez Castellanos, Ivan" X-Patchwork-Id: 75499 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.2) with ESMTP id o0RIEGwp030405 for ; Wed, 27 Jan 2010 18:14:16 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755906Ab0A0SOP (ORCPT ); Wed, 27 Jan 2010 13:14:15 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755941Ab0A0SOP (ORCPT ); Wed, 27 Jan 2010 13:14:15 -0500 Received: from comal.ext.ti.com ([198.47.26.152]:59436 "EHLO comal.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755854Ab0A0SOO convert rfc822-to-8bit (ORCPT ); Wed, 27 Jan 2010 13:14:14 -0500 Received: from dlep35.itg.ti.com ([157.170.170.118]) by comal.ext.ti.com (8.13.7/8.13.7) with ESMTP id o0RIECuC028741 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 27 Jan 2010 12:14:12 -0600 Received: from dlep26.itg.ti.com (localhost [127.0.0.1]) by dlep35.itg.ti.com (8.13.7/8.13.7) with ESMTP id o0RIEBkR014792; Wed, 27 Jan 2010 12:14:11 -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 o0RIEBmr017105; Wed, 27 Jan 2010 12:14:11 -0600 (CST) Received: from dlee01.ent.ti.com ([157.170.170.12]) by dlee73.ent.ti.com ([157.170.170.88]) with mapi; Wed, 27 Jan 2010 12:14:11 -0600 From: "Gomez Castellanos, Ivan" To: "linux-omap@vger.kernel.org" CC: "Ameya.Palande@nokia.com" , "Hiroshi.DOYU@nokia.com" , "felipe.contreras@nokia.com" , "Menon, Nishanth" Date: Wed, 27 Jan 2010 12:13:14 -0600 Subject: [PATCH 2/2] DSPBRIDGE: Remove DRV_ProcUpdatestate function Thread-Topic: [PATCH 2/2] DSPBRIDGE: Remove DRV_ProcUpdatestate function Thread-Index: AQHKn3yGVwE2LNJz0UeVL4jfdxfDIA== Message-ID: <818EF96F5A7CC84789DD014773DB095484859F57@dlee01.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 diff --git a/drivers/dsp/bridge/rmgr/drv.c b/drivers/dsp/bridge/rmgr/drv.c index fd09a83..b7817aa 100644 --- a/drivers/dsp/bridge/rmgr/drv.c +++ b/drivers/dsp/bridge/rmgr/drv.c @@ -83,15 +83,6 @@ static DSP_STATUS DRV_ProcFreeNodeRes(HANDLE hPCtxt); static DSP_STATUS DRV_ProcFreeSTRMRes(HANDLE hPCtxt); extern enum NODE_STATE NODE_GetState(HANDLE hNode); -/* Update the state of process context */ -DSP_STATUS DRV_ProcUpdatestate(HANDLE hPCtxt, enum GPP_PROC_RES_STATE status) -{ - struct PROCESS_CONTEXT *pCtxt = (struct PROCESS_CONTEXT *)hPCtxt; - DSP_STATUS status1 = DSP_SOK; - pCtxt->resState = status; - return status1; -} - /* Allocate and add a node resource element * This function is called from .Node_Allocate. */ DSP_STATUS DRV_InsertNodeResElement(HANDLE hNode, HANDLE hNodeRes, diff --git a/drivers/dsp/bridge/rmgr/drv_interface.c b/drivers/dsp/bridge/rmgr/drv_interface.c index 6d293bf..af8c6ad 100644 --- a/drivers/dsp/bridge/rmgr/drv_interface.c +++ b/drivers/dsp/bridge/rmgr/drv_interface.c @@ -503,7 +503,7 @@ static int bridge_open(struct inode *ip, struct file *filp) */ pr_ctxt = MEM_Calloc(sizeof(struct PROCESS_CONTEXT), MEM_PAGED); if (pr_ctxt) - DRV_ProcUpdatestate(pr_ctxt, PROC_RES_ALLOCATED); + pr_ctxt->resSatate = PROC_RES_ALLOCATED; else status = -ENOMEM; @@ -619,7 +619,7 @@ DSP_STATUS DRV_RemoveAllResources(HANDLE hPCtxt) DRV_RemoveAllSTRMResElements(pCtxt); DRV_RemoveAllNodeResElements(pCtxt); DRV_RemoveAllDMMResElements(pCtxt); - DRV_ProcUpdatestate(pCtxt, PROC_RES_FREED); + pCtxt->resState = PROC_RES_FREED; return status; } #endif