summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSubin K G <subin.kg@ti.com>2011-10-25 10:51:33 +0800
committerAndy Green <andy.green@linaro.org>2011-10-25 10:51:33 +0800
commit17224794ea80c7c41acf632f93f3fa76aa748a64 (patch)
treef940167c39ba1c9aacca2ec8b1363791c4e7016e
parent3cee99faefd86ac1d90164d9e5844b611ee49aed (diff)
syslink: devh: use the pid passed to the devh
Instead of using the current pid use the pid passed to the devh.This is the required since the process who opens the driver handle (iommu, tiler, ipc),may not the one releasing the handle.And in turn devh will be giving the wrong pid to ipu pm. Change-Id: I153ef85cbc0b5d671b82cfa5f07bbb1e99c39531 Signed-off-by: Subin K G <subin.kg@ti.com>
-rw-r--r--drivers/dsp/syslink/devh/44xx/devh44xx.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/dsp/syslink/devh/44xx/devh44xx.c b/drivers/dsp/syslink/devh/44xx/devh44xx.c
index 2aa7425ac78..3c7ec3fc44e 100644
--- a/drivers/dsp/syslink/devh/44xx/devh44xx.c
+++ b/drivers/dsp/syslink/devh/44xx/devh44xx.c
@@ -109,7 +109,6 @@ static int devh44xx_notifier_call(struct notifier_block *nb,
struct omap_devh_platform_data *pdata)
{
int err = 0;
- pid_t my_pid = current->tgid;
struct omap_devh_runtime_info *pinfo = NULL;
struct omap_devh_platform_data *pdata2 = NULL;
@@ -123,7 +122,7 @@ static int devh44xx_notifier_call(struct notifier_block *nb,
if (err)
goto exit;
err = ipu_pm_notifications(APP_M3, PM_PID_DEATH,
- (void *)my_pid);
+ (void *)v);
if (err) {
pinfo->brd_state = DEVH_BRDST_ERROR;
if (!strcmp(pdata->name, "SysM3")) {