summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorSammy He <r62914@freescale.com>2011-07-26 15:56:11 +0800
committerAlex Gonzalez <alex.gonzalez@digi.com>2011-12-15 17:13:05 +0100
commita9668a59b5e5c866c09c9afd0992299f8e142cd2 (patch)
treee95ff5c9fcce5d79028dccae420189f86658dc08 /drivers
parent1cef4db2b396dcaec959034dfdf00f2ff35e9390 (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 243ea34dd590..4234f1818fd3 100644
--- a/drivers/mxc/vpu/mxc_vpu.c
+++ b/drivers/mxc/vpu/mxc_vpu.c
@@ -240,6 +240,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;