summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorSammy He <r62914@freescale.com>2011-07-26 15:56:11 +0800
committerSammy He <r62914@freescale.com>2011-07-26 15:56:11 +0800
commit14855b5829e633293dfe4479794d2d75dde66a14 (patch)
treef5b8b59c806e88e78392ad741b7c9e82a01ef594 /drivers
parent0d50114eb58142a1a784422f1395ac9fb7d2c665 (diff)
ENGR00153680 vpu: Fix the issue of not increasing open_count
Fix the issue of missing to increase open_count when vpu_open. This is due to the patch of removing mx32 and mx37 code. Signed-off-by: Sammy He <r62914@freescale.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/mxc/vpu/mxc_vpu.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mxc/vpu/mxc_vpu.c b/drivers/mxc/vpu/mxc_vpu.c
index 5ff4ad0cf484..7df033b2c149 100644
--- a/drivers/mxc/vpu/mxc_vpu.c
+++ b/drivers/mxc/vpu/mxc_vpu.c
@@ -234,6 +234,7 @@ static irqreturn_t vpu_irq_handler(int irq, void *dev_id)
static int vpu_open(struct inode *inode, struct file *filp)
{
spin_lock(&vpu_lock);
+ open_count++;
filp->private_data = (void *)(&vpu_data);
spin_unlock(&vpu_lock);
return 0;