@@ -50,23 +50,6 @@
#define MAX_DEV 10 /* Max support of 10 devices */
/*
- * ======== DSP_Close ========
- * Purpose:
- * Called when the client application/driver unloads the DDSP DLL. Upon
- * unloading, the DDSP DLL will call CloseFile().
- * Parameters:
- * dwDeviceContext: Handle returned by XXX_Open used to identify
- * the open context of the device
- * Returns:
- * TRUE indicates the device is successfully closed. FALSE indicates
- * otherwise.
- * Requires:
- * dwOpenContext!= NULL.
- * Ensures:The Application instance owned objects are cleaned up.
- */
-extern bool DSP_Close(u32 dwDeviceContext);
-
-/*
* ======== DSP_Deinit ========
* Purpose:
* This function is called by Device Manager to de-initialize a device.
@@ -655,22 +655,9 @@ func_cont:
* driver. */
static int bridge_release(struct inode *ip, struct file *filp)
{
- int status;
- u32 pid;
-
- GT_0trace(driverTrace, GT_ENTER, "-> driver_release\n");
-
- /* Return PID instead of process handle */
- pid = current->pid;
-
- status = DSP_Close(pid);
-
-
- (status == true) ? (status = 0) : (status = -1);
-
- GT_0trace(driverTrace, GT_ENTER, " <- driver_release\n");
-
- return status;
+ GT_0trace(driverTrace, GT_ENTER, "-> bridge_release\n");
+ GT_0trace(driverTrace, GT_ENTER, "<- bridge_release\n");
+ return 0;
}
/* This function provides IO interface to the bridge driver. */
@@ -248,29 +248,3 @@ bool DSP_Deinit(u32 deviceContext)
return retVal;
}
-
-/*
- * ======== DSP_Close ========
- * The Calling Process handle is passed to DEV_CleanupProcesState
- * for cleaning up of any resources used by the application
- */
-bool DSP_Close(u32 dwOpenContext)
-{
- bool retVal = false;
-
- DBC_Require(dwOpenContext != 0);
-
- GT_0trace(curTrace, GT_ENTER, "Entering DSP_Close\n");
-
-#ifdef RES_CLEANUP_DISABLE
-
- if (DSP_SUCCEEDED(DEV_CleanupProcessState((HANDLE) dwOpenContext))) {
- GT_0trace(curTrace, GT_1CLASS, "DSP_Close Succeeded \r\n");
- retVal = true;
- } else {
- GT_0trace(curTrace, GT_7CLASS, "DSP_Close failed \r\n");
- }
-#endif
-
- return retVal;
-}
Signed-off-by: Ameya Palande <ameya.palande@nokia.com> --- arch/arm/plat-omap/include/dspbridge/dspdrv.h | 17 ---------------- drivers/dsp/bridge/rmgr/drv_interface.c | 19 ++--------------- drivers/dsp/bridge/rmgr/dspdrv.c | 26 ------------------------- 3 files changed, 3 insertions(+), 59 deletions(-)