]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ENGR00153680 vpu: Fix the issue of not increasing open_count
authorSammy He <r62914@freescale.com>
Tue, 26 Jul 2011 09:08:12 +0000 (17:08 +0800)
committerOliver Wendt <ow@karo-electronics.de>
Mon, 30 Sep 2013 12:09:21 +0000 (14:09 +0200)
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>
drivers/mxc/vpu/mxc_vpu.c

index c43102de031079f036532e3609a35018f20c4877..7944d0d898b74a5ae18ca2a73f4aae45a4bc94d3 100644 (file)
@@ -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;