]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/media/video/cx88/cx88-blackbird.c
V4L/DVB (8904): cx88: add missing unlock_kernel
[linux-2.6-omap-h63xx.git] / drivers / media / video / cx88 / cx88-blackbird.c
index 55c35482089e300dd19cd58946c61d4c45744d48..6b922066a66011a79ce3dc8f476ece93898b9e33 100644 (file)
@@ -1070,6 +1070,7 @@ static int mpeg_open(struct inode *inode, struct file *file)
                err = drv->request_acquire(drv);
                if(err != 0) {
                        dprintk(1,"%s: Unable to acquire hardware, %d\n", __func__, err);
+                       unlock_kernel();
                        return err;
                }
        }
@@ -1207,8 +1208,6 @@ static const struct v4l2_ioctl_ops mpeg_ioctl_ops = {
 
 static struct video_device cx8802_mpeg_template = {
        .name                 = "cx8802",
-       .type                 = VID_TYPE_CAPTURE | VID_TYPE_TUNER |
-                               VID_TYPE_SCALES | VID_TYPE_MPEG_ENCODER,
        .fops                 = &mpeg_fops,
        .ioctl_ops            = &mpeg_ioctl_ops,
        .minor                = -1,