summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorSubin K G <subin.kg@ti.com>2011-04-20 11:12:27 -0500
committerAndy Green <andy.green@linaro.org>2011-09-26 17:28:25 +0100
commit7495351adfd656fb7c5373824577ef2b8aa30798 (patch)
tree316cbd32b816efafa835acbfb2d3811ab45f3983 /drivers
parent19a12f6544be266800546ddae4fa47af169f41ab (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>
Diffstat (limited to 'drivers')
-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 2aa7425ac781..3c7ec3fc44e1 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")) {