V4L/DVB (7402): add macro validation for v4l_compat_ioctl32
[safe/jmp/linux-2.6] / drivers / media / video / cpia.c
index 7c630f5..2a81376 100644 (file)
@@ -3792,7 +3792,9 @@ static const struct file_operations cpia_fops = {
        .read           = cpia_read,
        .mmap           = cpia_mmap,
        .ioctl          = cpia_ioctl,
+#ifdef CONFIG_COMPAT
        .compat_ioctl   = v4l_compat_ioctl32,
+#endif
        .llseek         = no_llseek,
 };