diff options
Diffstat (limited to 'drivers/media/video/w9966.c')
-rw-r--r-- | drivers/media/video/w9966.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/media/video/w9966.c b/drivers/media/video/w9966.c index 08aaae07c7e0..33f702698a56 100644 --- a/drivers/media/video/w9966.c +++ b/drivers/media/video/w9966.c | |||
@@ -61,10 +61,10 @@ | |||
61 | #include <media/v4l2-common.h> | 61 | #include <media/v4l2-common.h> |
62 | #include <linux/parport.h> | 62 | #include <linux/parport.h> |
63 | 63 | ||
64 | //#define DEBUG // Undef me for production | 64 | /*#define DEBUG*/ /* Undef me for production */ |
65 | 65 | ||
66 | #ifdef DEBUG | 66 | #ifdef DEBUG |
67 | #define DPRINTF(x, a...) printk(KERN_DEBUG "W9966: %s(): "x, __FUNCTION__ , ##a) | 67 | #define DPRINTF(x, a...) printk(KERN_DEBUG "W9966: %s(): "x, __func__ , ##a) |
68 | #else | 68 | #else |
69 | #define DPRINTF(x...) | 69 | #define DPRINTF(x...) |
70 | #endif | 70 | #endif |
@@ -134,7 +134,7 @@ MODULE_PARM_DESC(pardev, "pardev: where to search for\n\ | |||
134 | \tEg: >pardev=parport3,aggressive,parport2,parport1< would assign\n\ | 134 | \tEg: >pardev=parport3,aggressive,parport2,parport1< would assign\n\ |
135 | \tcam 1 to parport3 and search every parport for cam 2 etc..."); | 135 | \tcam 1 to parport3 and search every parport for cam 2 etc..."); |
136 | 136 | ||
137 | static int parmode = 0; | 137 | static int parmode; |
138 | module_param(parmode, int, 0); | 138 | module_param(parmode, int, 0); |
139 | MODULE_PARM_DESC(parmode, "parmode: transfer mode (0=auto, 1=ecp, 2=epp"); | 139 | MODULE_PARM_DESC(parmode, "parmode: transfer mode (0=auto, 1=ecp, 2=epp"); |
140 | 140 | ||
@@ -188,7 +188,9 @@ static const struct file_operations w9966_fops = { | |||
188 | .open = video_exclusive_open, | 188 | .open = video_exclusive_open, |
189 | .release = video_exclusive_release, | 189 | .release = video_exclusive_release, |
190 | .ioctl = w9966_v4l_ioctl, | 190 | .ioctl = w9966_v4l_ioctl, |
191 | #ifdef CONFIG_COMPAT | ||
191 | .compat_ioctl = v4l_compat_ioctl32, | 192 | .compat_ioctl = v4l_compat_ioctl32, |
193 | #endif | ||
192 | .read = w9966_v4l_read, | 194 | .read = w9966_v4l_read, |
193 | .llseek = no_llseek, | 195 | .llseek = no_llseek, |
194 | }; | 196 | }; |