]> err.no Git - linux-2.6/blobdiff - drivers/media/video/pvrusb2/pvrusb2-v4l2.c
Merge branch 'upstream-linus' of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik...
[linux-2.6] / drivers / media / video / pvrusb2 / pvrusb2-v4l2.c
index 49186984a0d783a2b754dd5131b7ed163f5e9bf2..97e974d9b9c34ba8b215f0a61eb9a04f96e34008 100644 (file)
@@ -671,7 +671,7 @@ static int pvr2_v4l2_do_ioctl(struct inode *inode, struct file *file,
                ret = pvr2_hdw_register_access(
                        hdw,req->i2c_id,req->reg,
                        cmd == VIDIOC_INT_S_REGISTER,&val);
-               if (cmd == 0) req->val = val;
+               if (cmd == VIDIOC_INT_G_REGISTER) req->val = val;
                break;
        }
 #endif