diff options
author | Sammy He <r62914@freescale.com> | 2011-07-26 17:08:12 +0800 |
---|---|---|
committer | Sammy He <r62914@freescale.com> | 2011-07-26 17:08:12 +0800 |
commit | e2886ee46f54883db3f3097d9ca020906e75b66b (patch) | |
tree | e703596868874f6aaa5b5ae6a25e4c15e7c75a7f /drivers | |
parent | a8ac9b76b1cc07573595118160ae6086a688c1ed (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 mx31 and mx37 code.
Signed-off-by: Sammy He <r62914@freescale.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/mxc/vpu/mxc_vpu.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mxc/vpu/mxc_vpu.c b/drivers/mxc/vpu/mxc_vpu.c index c43102de0310..7944d0d898b7 100644 --- a/drivers/mxc/vpu/mxc_vpu.c +++ b/drivers/mxc/vpu/mxc_vpu.c @@ -259,6 +259,7 @@ static irqreturn_t vpu_jpu_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; |