diff options
Diffstat (limited to 'drivers/media/video/s2255drv.c')
-rw-r--r-- | drivers/media/video/s2255drv.c | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/drivers/media/video/s2255drv.c b/drivers/media/video/s2255drv.c index 704e2cb1e459..803c9c82e496 100644 --- a/drivers/media/video/s2255drv.c +++ b/drivers/media/video/s2255drv.c | |||
@@ -42,7 +42,6 @@ | |||
42 | #include <linux/mutex.h> | 42 | #include <linux/mutex.h> |
43 | #include <linux/slab.h> | 43 | #include <linux/slab.h> |
44 | #include <linux/videodev2.h> | 44 | #include <linux/videodev2.h> |
45 | #include <linux/version.h> | ||
46 | #include <linux/mm.h> | 45 | #include <linux/mm.h> |
47 | #include <media/videobuf-vmalloc.h> | 46 | #include <media/videobuf-vmalloc.h> |
48 | #include <media/v4l2-common.h> | 47 | #include <media/v4l2-common.h> |
@@ -51,12 +50,7 @@ | |||
51 | #include <linux/vmalloc.h> | 50 | #include <linux/vmalloc.h> |
52 | #include <linux/usb.h> | 51 | #include <linux/usb.h> |
53 | 52 | ||
54 | #define S2255_MAJOR_VERSION 1 | 53 | #define S2255_VERSION "1.22.1" |
55 | #define S2255_MINOR_VERSION 22 | ||
56 | #define S2255_RELEASE 0 | ||
57 | #define S2255_VERSION KERNEL_VERSION(S2255_MAJOR_VERSION, \ | ||
58 | S2255_MINOR_VERSION, \ | ||
59 | S2255_RELEASE) | ||
60 | #define FIRMWARE_FILE_NAME "f2255usb.bin" | 54 | #define FIRMWARE_FILE_NAME "f2255usb.bin" |
61 | 55 | ||
62 | /* default JPEG quality */ | 56 | /* default JPEG quality */ |
@@ -851,7 +845,6 @@ static int vidioc_querycap(struct file *file, void *priv, | |||
851 | strlcpy(cap->driver, "s2255", sizeof(cap->driver)); | 845 | strlcpy(cap->driver, "s2255", sizeof(cap->driver)); |
852 | strlcpy(cap->card, "s2255", sizeof(cap->card)); | 846 | strlcpy(cap->card, "s2255", sizeof(cap->card)); |
853 | usb_make_path(dev->udev, cap->bus_info, sizeof(cap->bus_info)); | 847 | usb_make_path(dev->udev, cap->bus_info, sizeof(cap->bus_info)); |
854 | cap->version = S2255_VERSION; | ||
855 | cap->capabilities = V4L2_CAP_VIDEO_CAPTURE | V4L2_CAP_STREAMING; | 848 | cap->capabilities = V4L2_CAP_VIDEO_CAPTURE | V4L2_CAP_STREAMING; |
856 | return 0; | 849 | return 0; |
857 | } | 850 | } |
@@ -1979,9 +1972,8 @@ static int s2255_probe_v4l(struct s2255_dev *dev) | |||
1979 | video_device_node_name(&channel->vdev)); | 1972 | video_device_node_name(&channel->vdev)); |
1980 | 1973 | ||
1981 | } | 1974 | } |
1982 | printk(KERN_INFO "Sensoray 2255 V4L driver Revision: %d.%d\n", | 1975 | printk(KERN_INFO "Sensoray 2255 V4L driver Revision: %s\n", |
1983 | S2255_MAJOR_VERSION, | 1976 | S2255_VERSION); |
1984 | S2255_MINOR_VERSION); | ||
1985 | /* if no channels registered, return error and probe will fail*/ | 1977 | /* if no channels registered, return error and probe will fail*/ |
1986 | if (atomic_read(&dev->num_channels) == 0) { | 1978 | if (atomic_read(&dev->num_channels) == 0) { |
1987 | v4l2_device_unregister(&dev->v4l2_dev); | 1979 | v4l2_device_unregister(&dev->v4l2_dev); |
@@ -2713,3 +2705,4 @@ module_exit(usb_s2255_exit); | |||
2713 | MODULE_DESCRIPTION("Sensoray 2255 Video for Linux driver"); | 2705 | MODULE_DESCRIPTION("Sensoray 2255 Video for Linux driver"); |
2714 | MODULE_AUTHOR("Dean Anderson (Sensoray Company Inc.)"); | 2706 | MODULE_AUTHOR("Dean Anderson (Sensoray Company Inc.)"); |
2715 | MODULE_LICENSE("GPL"); | 2707 | MODULE_LICENSE("GPL"); |
2708 | MODULE_VERSION(S2255_VERSION); | ||