]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/media/video/c-qcam.c
V4L/DVB (7538): Adds selectable adapter numbers as per module option
[linux-2.6-omap-h63xx.git] / drivers / media / video / c-qcam.c
index cf1546b5a7f1b33e8f8f7d8e865fa54f4fe518e5..2c85ced6115064a225b26fa102d2bb97514ba60d 100644 (file)
@@ -69,7 +69,7 @@ struct qcam_device {
 
 static int parport[MAX_CAMS] = { [1 ... MAX_CAMS-1] = -1 };
 static int probe = 2;
-static int force_rgb = 0;
+static int force_rgb;
 static int video_nr = -1;
 
 static inline void qcam_set_ack(struct qcam_device *qcam, unsigned int i)
@@ -689,7 +689,9 @@ static const struct file_operations qcam_fops = {
        .open           = video_exclusive_open,
        .release        = video_exclusive_release,
        .ioctl          = qcam_ioctl,
+#ifdef CONFIG_COMPAT
        .compat_ioctl   = v4l_compat_ioctl32,
+#endif
        .read           = qcam_read,
        .llseek         = no_llseek,
 };
@@ -741,7 +743,7 @@ static struct qcam_device *qcam_init(struct parport *port)
 }
 
 static struct qcam_device *qcams[MAX_CAMS];
-static unsigned int num_cams = 0;
+static unsigned int num_cams;
 
 static int init_cqcam(struct parport *port)
 {