diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-06-25 10:28:37 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-07-27 16:53:16 -0400 |
commit | 64dc3c1a906467d90c24913b0b38dd13d9378f4f (patch) | |
tree | 64153b6da4909a9612e95735f8f21267c594e4d0 /drivers | |
parent | b0eaab765794bf4fdf060c74b21c9851ba3c6907 (diff) |
[media] Stop using linux/version.h on the remaining video drivers
Standardize the remaining video drivers to return the API version
for the VIDIOC_QUERYCAP version, instead of a per-driver version.
Those drivers had the version updated more recently or are SoC
drivers. Even so, it doesn't sound a good idea to keep a per-driver
version control, so, let's use the per-subsystem version control
instead.
Acked-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers')
21 files changed, 30 insertions, 75 deletions
diff --git a/drivers/media/video/davinci/vpif_capture.c b/drivers/media/video/davinci/vpif_capture.c index d93ad74a34c5..49e4deb50043 100644 --- a/drivers/media/video/davinci/vpif_capture.c +++ b/drivers/media/video/davinci/vpif_capture.c | |||
@@ -33,7 +33,6 @@ | |||
33 | #include <linux/i2c.h> | 33 | #include <linux/i2c.h> |
34 | #include <linux/platform_device.h> | 34 | #include <linux/platform_device.h> |
35 | #include <linux/io.h> | 35 | #include <linux/io.h> |
36 | #include <linux/version.h> | ||
37 | #include <linux/slab.h> | 36 | #include <linux/slab.h> |
38 | #include <media/v4l2-device.h> | 37 | #include <media/v4l2-device.h> |
39 | #include <media/v4l2-ioctl.h> | 38 | #include <media/v4l2-ioctl.h> |
@@ -44,6 +43,7 @@ | |||
44 | 43 | ||
45 | MODULE_DESCRIPTION("TI DaVinci VPIF Capture driver"); | 44 | MODULE_DESCRIPTION("TI DaVinci VPIF Capture driver"); |
46 | MODULE_LICENSE("GPL"); | 45 | MODULE_LICENSE("GPL"); |
46 | MODULE_VERSION(VPIF_CAPTURE_VERSION); | ||
47 | 47 | ||
48 | #define vpif_err(fmt, arg...) v4l2_err(&vpif_obj.v4l2_dev, fmt, ## arg) | 48 | #define vpif_err(fmt, arg...) v4l2_err(&vpif_obj.v4l2_dev, fmt, ## arg) |
49 | #define vpif_dbg(level, debug, fmt, arg...) \ | 49 | #define vpif_dbg(level, debug, fmt, arg...) \ |
@@ -1677,7 +1677,6 @@ static int vpif_querycap(struct file *file, void *priv, | |||
1677 | { | 1677 | { |
1678 | struct vpif_capture_config *config = vpif_dev->platform_data; | 1678 | struct vpif_capture_config *config = vpif_dev->platform_data; |
1679 | 1679 | ||
1680 | cap->version = VPIF_CAPTURE_VERSION_CODE; | ||
1681 | cap->capabilities = V4L2_CAP_VIDEO_CAPTURE | V4L2_CAP_STREAMING; | 1680 | cap->capabilities = V4L2_CAP_VIDEO_CAPTURE | V4L2_CAP_STREAMING; |
1682 | strlcpy(cap->driver, "vpif capture", sizeof(cap->driver)); | 1681 | strlcpy(cap->driver, "vpif capture", sizeof(cap->driver)); |
1683 | strlcpy(cap->bus_info, "DM646x Platform", sizeof(cap->bus_info)); | 1682 | strlcpy(cap->bus_info, "DM646x Platform", sizeof(cap->bus_info)); |
@@ -2211,10 +2210,8 @@ static __init int vpif_probe(struct platform_device *pdev) | |||
2211 | vfd->v4l2_dev = &vpif_obj.v4l2_dev; | 2210 | vfd->v4l2_dev = &vpif_obj.v4l2_dev; |
2212 | vfd->release = video_device_release; | 2211 | vfd->release = video_device_release; |
2213 | snprintf(vfd->name, sizeof(vfd->name), | 2212 | snprintf(vfd->name, sizeof(vfd->name), |
2214 | "DM646x_VPIFCapture_DRIVER_V%d.%d.%d", | 2213 | "DM646x_VPIFCapture_DRIVER_V%s", |
2215 | (VPIF_CAPTURE_VERSION_CODE >> 16) & 0xff, | 2214 | VPIF_CAPTURE_VERSION); |
2216 | (VPIF_CAPTURE_VERSION_CODE >> 8) & 0xff, | ||
2217 | (VPIF_CAPTURE_VERSION_CODE) & 0xff); | ||
2218 | /* Set video_dev to the video device */ | 2215 | /* Set video_dev to the video device */ |
2219 | ch->video_dev = vfd; | 2216 | ch->video_dev = vfd; |
2220 | } | 2217 | } |
diff --git a/drivers/media/video/davinci/vpif_capture.h b/drivers/media/video/davinci/vpif_capture.h index 7a4196dfdce1..064550f5ce4a 100644 --- a/drivers/media/video/davinci/vpif_capture.h +++ b/drivers/media/video/davinci/vpif_capture.h | |||
@@ -23,7 +23,6 @@ | |||
23 | 23 | ||
24 | /* Header files */ | 24 | /* Header files */ |
25 | #include <linux/videodev2.h> | 25 | #include <linux/videodev2.h> |
26 | #include <linux/version.h> | ||
27 | #include <media/v4l2-common.h> | 26 | #include <media/v4l2-common.h> |
28 | #include <media/v4l2-device.h> | 27 | #include <media/v4l2-device.h> |
29 | #include <media/videobuf-core.h> | 28 | #include <media/videobuf-core.h> |
@@ -33,11 +32,7 @@ | |||
33 | #include "vpif.h" | 32 | #include "vpif.h" |
34 | 33 | ||
35 | /* Macros */ | 34 | /* Macros */ |
36 | #define VPIF_MAJOR_RELEASE 0 | 35 | #define VPIF_CAPTURE_VERSION "0.0.2" |
37 | #define VPIF_MINOR_RELEASE 0 | ||
38 | #define VPIF_BUILD 1 | ||
39 | #define VPIF_CAPTURE_VERSION_CODE ((VPIF_MAJOR_RELEASE << 16) | \ | ||
40 | (VPIF_MINOR_RELEASE << 8) | VPIF_BUILD) | ||
41 | 36 | ||
42 | #define VPIF_VALID_FIELD(field) (((V4L2_FIELD_ANY == field) || \ | 37 | #define VPIF_VALID_FIELD(field) (((V4L2_FIELD_ANY == field) || \ |
43 | (V4L2_FIELD_NONE == field)) || \ | 38 | (V4L2_FIELD_NONE == field)) || \ |
diff --git a/drivers/media/video/davinci/vpif_display.c b/drivers/media/video/davinci/vpif_display.c index cdf659abdc2a..286f02910044 100644 --- a/drivers/media/video/davinci/vpif_display.c +++ b/drivers/media/video/davinci/vpif_display.c | |||
@@ -29,7 +29,6 @@ | |||
29 | #include <linux/i2c.h> | 29 | #include <linux/i2c.h> |
30 | #include <linux/platform_device.h> | 30 | #include <linux/platform_device.h> |
31 | #include <linux/io.h> | 31 | #include <linux/io.h> |
32 | #include <linux/version.h> | ||
33 | #include <linux/slab.h> | 32 | #include <linux/slab.h> |
34 | 33 | ||
35 | #include <asm/irq.h> | 34 | #include <asm/irq.h> |
@@ -47,6 +46,7 @@ | |||
47 | 46 | ||
48 | MODULE_DESCRIPTION("TI DaVinci VPIF Display driver"); | 47 | MODULE_DESCRIPTION("TI DaVinci VPIF Display driver"); |
49 | MODULE_LICENSE("GPL"); | 48 | MODULE_LICENSE("GPL"); |
49 | MODULE_VERSION(VPIF_DISPLAY_VERSION); | ||
50 | 50 | ||
51 | #define DM646X_V4L2_STD (V4L2_STD_525_60 | V4L2_STD_625_50) | 51 | #define DM646X_V4L2_STD (V4L2_STD_525_60 | V4L2_STD_625_50) |
52 | 52 | ||
@@ -701,7 +701,6 @@ static int vpif_querycap(struct file *file, void *priv, | |||
701 | { | 701 | { |
702 | struct vpif_display_config *config = vpif_dev->platform_data; | 702 | struct vpif_display_config *config = vpif_dev->platform_data; |
703 | 703 | ||
704 | cap->version = VPIF_DISPLAY_VERSION_CODE; | ||
705 | cap->capabilities = V4L2_CAP_VIDEO_OUTPUT | V4L2_CAP_STREAMING; | 704 | cap->capabilities = V4L2_CAP_VIDEO_OUTPUT | V4L2_CAP_STREAMING; |
706 | strlcpy(cap->driver, "vpif display", sizeof(cap->driver)); | 705 | strlcpy(cap->driver, "vpif display", sizeof(cap->driver)); |
707 | strlcpy(cap->bus_info, "Platform", sizeof(cap->bus_info)); | 706 | strlcpy(cap->bus_info, "Platform", sizeof(cap->bus_info)); |
@@ -1740,10 +1739,8 @@ static __init int vpif_probe(struct platform_device *pdev) | |||
1740 | vfd->v4l2_dev = &vpif_obj.v4l2_dev; | 1739 | vfd->v4l2_dev = &vpif_obj.v4l2_dev; |
1741 | vfd->release = video_device_release; | 1740 | vfd->release = video_device_release; |
1742 | snprintf(vfd->name, sizeof(vfd->name), | 1741 | snprintf(vfd->name, sizeof(vfd->name), |
1743 | "DM646x_VPIFDisplay_DRIVER_V%d.%d.%d", | 1742 | "DM646x_VPIFDisplay_DRIVER_V%s", |
1744 | (VPIF_DISPLAY_VERSION_CODE >> 16) & 0xff, | 1743 | VPIF_DISPLAY_VERSION); |
1745 | (VPIF_DISPLAY_VERSION_CODE >> 8) & 0xff, | ||
1746 | (VPIF_DISPLAY_VERSION_CODE) & 0xff); | ||
1747 | 1744 | ||
1748 | /* Set video_dev to the video device */ | 1745 | /* Set video_dev to the video device */ |
1749 | ch->video_dev = vfd; | 1746 | ch->video_dev = vfd; |
diff --git a/drivers/media/video/davinci/vpif_display.h b/drivers/media/video/davinci/vpif_display.h index b53aaa883075..5d1936dafed2 100644 --- a/drivers/media/video/davinci/vpif_display.h +++ b/drivers/media/video/davinci/vpif_display.h | |||
@@ -18,7 +18,6 @@ | |||
18 | 18 | ||
19 | /* Header files */ | 19 | /* Header files */ |
20 | #include <linux/videodev2.h> | 20 | #include <linux/videodev2.h> |
21 | #include <linux/version.h> | ||
22 | #include <media/v4l2-common.h> | 21 | #include <media/v4l2-common.h> |
23 | #include <media/v4l2-device.h> | 22 | #include <media/v4l2-device.h> |
24 | #include <media/videobuf-core.h> | 23 | #include <media/videobuf-core.h> |
@@ -27,12 +26,7 @@ | |||
27 | #include "vpif.h" | 26 | #include "vpif.h" |
28 | 27 | ||
29 | /* Macros */ | 28 | /* Macros */ |
30 | #define VPIF_MAJOR_RELEASE (0) | 29 | #define VPIF_DISPLAY_VERSION "0.0.2" |
31 | #define VPIF_MINOR_RELEASE (0) | ||
32 | #define VPIF_BUILD (1) | ||
33 | |||
34 | #define VPIF_DISPLAY_VERSION_CODE \ | ||
35 | ((VPIF_MAJOR_RELEASE << 16) | (VPIF_MINOR_RELEASE << 8) | VPIF_BUILD) | ||
36 | 30 | ||
37 | #define VPIF_VALID_FIELD(field) \ | 31 | #define VPIF_VALID_FIELD(field) \ |
38 | (((V4L2_FIELD_ANY == field) || (V4L2_FIELD_NONE == field)) || \ | 32 | (((V4L2_FIELD_ANY == field) || (V4L2_FIELD_NONE == field)) || \ |
diff --git a/drivers/media/video/fsl-viu.c b/drivers/media/video/fsl-viu.c index 908d7012c3f2..27cb197d0bd6 100644 --- a/drivers/media/video/fsl-viu.c +++ b/drivers/media/video/fsl-viu.c | |||
@@ -23,19 +23,13 @@ | |||
23 | #include <linux/io.h> | 23 | #include <linux/io.h> |
24 | #include <linux/of_platform.h> | 24 | #include <linux/of_platform.h> |
25 | #include <linux/slab.h> | 25 | #include <linux/slab.h> |
26 | #include <linux/version.h> | ||
27 | #include <media/v4l2-common.h> | 26 | #include <media/v4l2-common.h> |
28 | #include <media/v4l2-device.h> | 27 | #include <media/v4l2-device.h> |
29 | #include <media/v4l2-ioctl.h> | 28 | #include <media/v4l2-ioctl.h> |
30 | #include <media/videobuf-dma-contig.h> | 29 | #include <media/videobuf-dma-contig.h> |
31 | 30 | ||
32 | #define DRV_NAME "fsl_viu" | 31 | #define DRV_NAME "fsl_viu" |
33 | #define VIU_MAJOR_VERSION 0 | 32 | #define VIU_VERSION "0.5.1" |
34 | #define VIU_MINOR_VERSION 5 | ||
35 | #define VIU_RELEASE 0 | ||
36 | #define VIU_VERSION KERNEL_VERSION(VIU_MAJOR_VERSION, \ | ||
37 | VIU_MINOR_VERSION, \ | ||
38 | VIU_RELEASE) | ||
39 | 33 | ||
40 | #define BUFFER_TIMEOUT msecs_to_jiffies(500) /* 0.5 seconds */ | 34 | #define BUFFER_TIMEOUT msecs_to_jiffies(500) /* 0.5 seconds */ |
41 | 35 | ||
@@ -610,7 +604,6 @@ static int vidioc_querycap(struct file *file, void *priv, | |||
610 | { | 604 | { |
611 | strcpy(cap->driver, "viu"); | 605 | strcpy(cap->driver, "viu"); |
612 | strcpy(cap->card, "viu"); | 606 | strcpy(cap->card, "viu"); |
613 | cap->version = VIU_VERSION; | ||
614 | cap->capabilities = V4L2_CAP_VIDEO_CAPTURE | | 607 | cap->capabilities = V4L2_CAP_VIDEO_CAPTURE | |
615 | V4L2_CAP_STREAMING | | 608 | V4L2_CAP_STREAMING | |
616 | V4L2_CAP_VIDEO_OVERLAY | | 609 | V4L2_CAP_VIDEO_OVERLAY | |
@@ -1684,3 +1677,4 @@ module_exit(viu_exit); | |||
1684 | MODULE_DESCRIPTION("Freescale Video-In(VIU)"); | 1677 | MODULE_DESCRIPTION("Freescale Video-In(VIU)"); |
1685 | MODULE_AUTHOR("Hongjun Chen"); | 1678 | MODULE_AUTHOR("Hongjun Chen"); |
1686 | MODULE_LICENSE("GPL"); | 1679 | MODULE_LICENSE("GPL"); |
1680 | MODULE_VERSION(VIU_VERSION); | ||
diff --git a/drivers/media/video/m5mols/m5mols_capture.c b/drivers/media/video/m5mols/m5mols_capture.c index d9471928369d..3248ac805711 100644 --- a/drivers/media/video/m5mols/m5mols_capture.c +++ b/drivers/media/video/m5mols/m5mols_capture.c | |||
@@ -18,11 +18,9 @@ | |||
18 | #include <linux/irq.h> | 18 | #include <linux/irq.h> |
19 | #include <linux/interrupt.h> | 19 | #include <linux/interrupt.h> |
20 | #include <linux/delay.h> | 20 | #include <linux/delay.h> |
21 | #include <linux/version.h> | ||
22 | #include <linux/gpio.h> | 21 | #include <linux/gpio.h> |
23 | #include <linux/regulator/consumer.h> | 22 | #include <linux/regulator/consumer.h> |
24 | #include <linux/videodev2.h> | 23 | #include <linux/videodev2.h> |
25 | #include <linux/version.h> | ||
26 | #include <media/v4l2-ctrls.h> | 24 | #include <media/v4l2-ctrls.h> |
27 | #include <media/v4l2-device.h> | 25 | #include <media/v4l2-device.h> |
28 | #include <media/v4l2-subdev.h> | 26 | #include <media/v4l2-subdev.h> |
diff --git a/drivers/media/video/m5mols/m5mols_core.c b/drivers/media/video/m5mols/m5mols_core.c index 43c68f51c5ce..fb8e4a7a9dd2 100644 --- a/drivers/media/video/m5mols/m5mols_core.c +++ b/drivers/media/video/m5mols/m5mols_core.c | |||
@@ -18,7 +18,6 @@ | |||
18 | #include <linux/irq.h> | 18 | #include <linux/irq.h> |
19 | #include <linux/interrupt.h> | 19 | #include <linux/interrupt.h> |
20 | #include <linux/delay.h> | 20 | #include <linux/delay.h> |
21 | #include <linux/version.h> | ||
22 | #include <linux/gpio.h> | 21 | #include <linux/gpio.h> |
23 | #include <linux/regulator/consumer.h> | 22 | #include <linux/regulator/consumer.h> |
24 | #include <linux/videodev2.h> | 23 | #include <linux/videodev2.h> |
diff --git a/drivers/media/video/mx1_camera.c b/drivers/media/video/mx1_camera.c index 63f8a0cc33d8..30a1364675c2 100644 --- a/drivers/media/video/mx1_camera.c +++ b/drivers/media/video/mx1_camera.c | |||
@@ -31,7 +31,6 @@ | |||
31 | #include <linux/sched.h> | 31 | #include <linux/sched.h> |
32 | #include <linux/slab.h> | 32 | #include <linux/slab.h> |
33 | #include <linux/time.h> | 33 | #include <linux/time.h> |
34 | #include <linux/version.h> | ||
35 | #include <linux/videodev2.h> | 34 | #include <linux/videodev2.h> |
36 | 35 | ||
37 | #include <media/soc_camera.h> | 36 | #include <media/soc_camera.h> |
@@ -73,7 +72,7 @@ | |||
73 | #define CSISR_SOF_INT (1 << 16) | 72 | #define CSISR_SOF_INT (1 << 16) |
74 | #define CSISR_DRDY (1 << 0) | 73 | #define CSISR_DRDY (1 << 0) |
75 | 74 | ||
76 | #define VERSION_CODE KERNEL_VERSION(0, 0, 1) | 75 | #define DRIVER_VERSION "0.0.2" |
77 | #define DRIVER_NAME "mx1-camera" | 76 | #define DRIVER_NAME "mx1-camera" |
78 | 77 | ||
79 | #define CSI_IRQ_MASK (CSISR_SFF_OR_INT | CSISR_RFF_OR_INT | \ | 78 | #define CSI_IRQ_MASK (CSISR_SFF_OR_INT | CSISR_RFF_OR_INT | \ |
@@ -676,7 +675,6 @@ static int mx1_camera_querycap(struct soc_camera_host *ici, | |||
676 | { | 675 | { |
677 | /* cap->name is set by the friendly caller:-> */ | 676 | /* cap->name is set by the friendly caller:-> */ |
678 | strlcpy(cap->card, "i.MX1/i.MXL Camera", sizeof(cap->card)); | 677 | strlcpy(cap->card, "i.MX1/i.MXL Camera", sizeof(cap->card)); |
679 | cap->version = VERSION_CODE; | ||
680 | cap->capabilities = V4L2_CAP_VIDEO_CAPTURE | V4L2_CAP_STREAMING; | 678 | cap->capabilities = V4L2_CAP_VIDEO_CAPTURE | V4L2_CAP_STREAMING; |
681 | 679 | ||
682 | return 0; | 680 | return 0; |
@@ -883,4 +881,5 @@ module_exit(mx1_camera_exit); | |||
883 | MODULE_DESCRIPTION("i.MX1/i.MXL SoC Camera Host driver"); | 881 | MODULE_DESCRIPTION("i.MX1/i.MXL SoC Camera Host driver"); |
884 | MODULE_AUTHOR("Paulius Zaleckas <paulius.zaleckas@teltonika.lt>"); | 882 | MODULE_AUTHOR("Paulius Zaleckas <paulius.zaleckas@teltonika.lt>"); |
885 | MODULE_LICENSE("GPL v2"); | 883 | MODULE_LICENSE("GPL v2"); |
884 | MODULE_VERSION(DRIVER_VERSION); | ||
886 | MODULE_ALIAS("platform:" DRIVER_NAME); | 885 | MODULE_ALIAS("platform:" DRIVER_NAME); |
diff --git a/drivers/media/video/mx2_camera.c b/drivers/media/video/mx2_camera.c index 4eab1c620318..e05e80090959 100644 --- a/drivers/media/video/mx2_camera.c +++ b/drivers/media/video/mx2_camera.c | |||
@@ -23,7 +23,6 @@ | |||
23 | #include <linux/mm.h> | 23 | #include <linux/mm.h> |
24 | #include <linux/moduleparam.h> | 24 | #include <linux/moduleparam.h> |
25 | #include <linux/time.h> | 25 | #include <linux/time.h> |
26 | #include <linux/version.h> | ||
27 | #include <linux/device.h> | 26 | #include <linux/device.h> |
28 | #include <linux/platform_device.h> | 27 | #include <linux/platform_device.h> |
29 | #include <linux/mutex.h> | 28 | #include <linux/mutex.h> |
@@ -47,7 +46,7 @@ | |||
47 | #include <asm/dma.h> | 46 | #include <asm/dma.h> |
48 | 47 | ||
49 | #define MX2_CAM_DRV_NAME "mx2-camera" | 48 | #define MX2_CAM_DRV_NAME "mx2-camera" |
50 | #define MX2_CAM_VERSION_CODE KERNEL_VERSION(0, 0, 5) | 49 | #define MX2_CAM_VERSION "0.0.6" |
51 | #define MX2_CAM_DRIVER_DESCRIPTION "i.MX2x_Camera" | 50 | #define MX2_CAM_DRIVER_DESCRIPTION "i.MX2x_Camera" |
52 | 51 | ||
53 | /* reset values */ | 52 | /* reset values */ |
@@ -1014,7 +1013,6 @@ static int mx2_camera_querycap(struct soc_camera_host *ici, | |||
1014 | { | 1013 | { |
1015 | /* cap->name is set by the friendly caller:-> */ | 1014 | /* cap->name is set by the friendly caller:-> */ |
1016 | strlcpy(cap->card, MX2_CAM_DRIVER_DESCRIPTION, sizeof(cap->card)); | 1015 | strlcpy(cap->card, MX2_CAM_DRIVER_DESCRIPTION, sizeof(cap->card)); |
1017 | cap->version = MX2_CAM_VERSION_CODE; | ||
1018 | cap->capabilities = V4L2_CAP_VIDEO_CAPTURE | V4L2_CAP_STREAMING; | 1016 | cap->capabilities = V4L2_CAP_VIDEO_CAPTURE | V4L2_CAP_STREAMING; |
1019 | 1017 | ||
1020 | return 0; | 1018 | return 0; |
@@ -1523,3 +1521,4 @@ module_exit(mx2_camera_exit); | |||
1523 | MODULE_DESCRIPTION("i.MX27/i.MX25 SoC Camera Host driver"); | 1521 | MODULE_DESCRIPTION("i.MX27/i.MX25 SoC Camera Host driver"); |
1524 | MODULE_AUTHOR("Sascha Hauer <sha@pengutronix.de>"); | 1522 | MODULE_AUTHOR("Sascha Hauer <sha@pengutronix.de>"); |
1525 | MODULE_LICENSE("GPL"); | 1523 | MODULE_LICENSE("GPL"); |
1524 | MODULE_VERSION(MX2_CAM_VERSION); | ||
diff --git a/drivers/media/video/mx3_camera.c b/drivers/media/video/mx3_camera.c index c7680eb83664..36f0ed9ca9e1 100644 --- a/drivers/media/video/mx3_camera.c +++ b/drivers/media/video/mx3_camera.c | |||
@@ -11,7 +11,6 @@ | |||
11 | 11 | ||
12 | #include <linux/init.h> | 12 | #include <linux/init.h> |
13 | #include <linux/module.h> | 13 | #include <linux/module.h> |
14 | #include <linux/version.h> | ||
15 | #include <linux/videodev2.h> | 14 | #include <linux/videodev2.h> |
16 | #include <linux/platform_device.h> | 15 | #include <linux/platform_device.h> |
17 | #include <linux/clk.h> | 16 | #include <linux/clk.h> |
@@ -1000,7 +999,6 @@ static int mx3_camera_querycap(struct soc_camera_host *ici, | |||
1000 | { | 999 | { |
1001 | /* cap->name is set by the firendly caller:-> */ | 1000 | /* cap->name is set by the firendly caller:-> */ |
1002 | strlcpy(cap->card, "i.MX3x Camera", sizeof(cap->card)); | 1001 | strlcpy(cap->card, "i.MX3x Camera", sizeof(cap->card)); |
1003 | cap->version = KERNEL_VERSION(0, 2, 2); | ||
1004 | cap->capabilities = V4L2_CAP_VIDEO_CAPTURE | V4L2_CAP_STREAMING; | 1002 | cap->capabilities = V4L2_CAP_VIDEO_CAPTURE | V4L2_CAP_STREAMING; |
1005 | 1003 | ||
1006 | return 0; | 1004 | return 0; |
@@ -1325,4 +1323,5 @@ module_exit(mx3_camera_exit); | |||
1325 | MODULE_DESCRIPTION("i.MX3x SoC Camera Host driver"); | 1323 | MODULE_DESCRIPTION("i.MX3x SoC Camera Host driver"); |
1326 | MODULE_AUTHOR("Guennadi Liakhovetski <lg@denx.de>"); | 1324 | MODULE_AUTHOR("Guennadi Liakhovetski <lg@denx.de>"); |
1327 | MODULE_LICENSE("GPL v2"); | 1325 | MODULE_LICENSE("GPL v2"); |
1326 | MODULE_VERSION("0.2.3"); | ||
1328 | MODULE_ALIAS("platform:" MX3_CAM_DRV_NAME); | 1327 | MODULE_ALIAS("platform:" MX3_CAM_DRV_NAME); |
diff --git a/drivers/media/video/omap1_camera.c b/drivers/media/video/omap1_camera.c index e7cfc85b0a1c..9bfe4c121a5c 100644 --- a/drivers/media/video/omap1_camera.c +++ b/drivers/media/video/omap1_camera.c | |||
@@ -26,7 +26,6 @@ | |||
26 | #include <linux/interrupt.h> | 26 | #include <linux/interrupt.h> |
27 | #include <linux/platform_device.h> | 27 | #include <linux/platform_device.h> |
28 | #include <linux/slab.h> | 28 | #include <linux/slab.h> |
29 | #include <linux/version.h> | ||
30 | 29 | ||
31 | #include <media/omap1_camera.h> | 30 | #include <media/omap1_camera.h> |
32 | #include <media/soc_camera.h> | 31 | #include <media/soc_camera.h> |
@@ -38,7 +37,7 @@ | |||
38 | 37 | ||
39 | 38 | ||
40 | #define DRIVER_NAME "omap1-camera" | 39 | #define DRIVER_NAME "omap1-camera" |
41 | #define VERSION_CODE KERNEL_VERSION(0, 0, 1) | 40 | #define DRIVER_VERSION "0.0.2" |
42 | 41 | ||
43 | 42 | ||
44 | /* | 43 | /* |
@@ -1431,7 +1430,6 @@ static int omap1_cam_querycap(struct soc_camera_host *ici, | |||
1431 | { | 1430 | { |
1432 | /* cap->name is set by the friendly caller:-> */ | 1431 | /* cap->name is set by the friendly caller:-> */ |
1433 | strlcpy(cap->card, "OMAP1 Camera", sizeof(cap->card)); | 1432 | strlcpy(cap->card, "OMAP1 Camera", sizeof(cap->card)); |
1434 | cap->version = VERSION_CODE; | ||
1435 | cap->capabilities = V4L2_CAP_VIDEO_CAPTURE | V4L2_CAP_STREAMING; | 1433 | cap->capabilities = V4L2_CAP_VIDEO_CAPTURE | V4L2_CAP_STREAMING; |
1436 | 1434 | ||
1437 | return 0; | 1435 | return 0; |
@@ -1718,4 +1716,5 @@ MODULE_PARM_DESC(sg_mode, "videobuf mode, 0: dma-contig (default), 1: dma-sg"); | |||
1718 | MODULE_DESCRIPTION("OMAP1 Camera Interface driver"); | 1716 | MODULE_DESCRIPTION("OMAP1 Camera Interface driver"); |
1719 | MODULE_AUTHOR("Janusz Krzysztofik <jkrzyszt@tis.icnet.pl>"); | 1717 | MODULE_AUTHOR("Janusz Krzysztofik <jkrzyszt@tis.icnet.pl>"); |
1720 | MODULE_LICENSE("GPL v2"); | 1718 | MODULE_LICENSE("GPL v2"); |
1719 | MODULE_LICENSE(DRIVER_VERSION); | ||
1721 | MODULE_ALIAS("platform:" DRIVER_NAME); | 1720 | MODULE_ALIAS("platform:" DRIVER_NAME); |
diff --git a/drivers/media/video/omap24xxcam.c b/drivers/media/video/omap24xxcam.c index f6626e87dbc5..ba3a8af76a8c 100644 --- a/drivers/media/video/omap24xxcam.c +++ b/drivers/media/video/omap24xxcam.c | |||
@@ -31,7 +31,6 @@ | |||
31 | #include <linux/interrupt.h> | 31 | #include <linux/interrupt.h> |
32 | #include <linux/videodev2.h> | 32 | #include <linux/videodev2.h> |
33 | #include <linux/pci.h> /* needed for videobufs */ | 33 | #include <linux/pci.h> /* needed for videobufs */ |
34 | #include <linux/version.h> | ||
35 | #include <linux/platform_device.h> | 34 | #include <linux/platform_device.h> |
36 | #include <linux/clk.h> | 35 | #include <linux/clk.h> |
37 | #include <linux/io.h> | 36 | #include <linux/io.h> |
@@ -43,7 +42,7 @@ | |||
43 | 42 | ||
44 | #include "omap24xxcam.h" | 43 | #include "omap24xxcam.h" |
45 | 44 | ||
46 | #define OMAP24XXCAM_VERSION KERNEL_VERSION(0, 0, 0) | 45 | #define OMAP24XXCAM_VERSION "0.0.1" |
47 | 46 | ||
48 | #define RESET_TIMEOUT_NS 10000 | 47 | #define RESET_TIMEOUT_NS 10000 |
49 | 48 | ||
@@ -993,7 +992,6 @@ static int vidioc_querycap(struct file *file, void *fh, | |||
993 | 992 | ||
994 | strlcpy(cap->driver, CAM_NAME, sizeof(cap->driver)); | 993 | strlcpy(cap->driver, CAM_NAME, sizeof(cap->driver)); |
995 | strlcpy(cap->card, cam->vfd->name, sizeof(cap->card)); | 994 | strlcpy(cap->card, cam->vfd->name, sizeof(cap->card)); |
996 | cap->version = OMAP24XXCAM_VERSION; | ||
997 | cap->capabilities = V4L2_CAP_VIDEO_CAPTURE | V4L2_CAP_STREAMING; | 995 | cap->capabilities = V4L2_CAP_VIDEO_CAPTURE | V4L2_CAP_STREAMING; |
998 | 996 | ||
999 | return 0; | 997 | return 0; |
@@ -1889,6 +1887,7 @@ static void __exit omap24xxcam_cleanup(void) | |||
1889 | MODULE_AUTHOR("Sakari Ailus <sakari.ailus@nokia.com>"); | 1887 | MODULE_AUTHOR("Sakari Ailus <sakari.ailus@nokia.com>"); |
1890 | MODULE_DESCRIPTION("OMAP24xx Video for Linux camera driver"); | 1888 | MODULE_DESCRIPTION("OMAP24xx Video for Linux camera driver"); |
1891 | MODULE_LICENSE("GPL"); | 1889 | MODULE_LICENSE("GPL"); |
1890 | MODULE_VERSION(OMAP24XXCAM_VERSION); | ||
1892 | module_param(video_nr, int, 0); | 1891 | module_param(video_nr, int, 0); |
1893 | MODULE_PARM_DESC(video_nr, | 1892 | MODULE_PARM_DESC(video_nr, |
1894 | "Minor number for video device (-1 ==> auto assign)"); | 1893 | "Minor number for video device (-1 ==> auto assign)"); |
diff --git a/drivers/media/video/omap3isp/isp.c b/drivers/media/video/omap3isp/isp.c index 94b6ed89e195..5cea2bbd7014 100644 --- a/drivers/media/video/omap3isp/isp.c +++ b/drivers/media/video/omap3isp/isp.c | |||
@@ -2234,3 +2234,4 @@ module_exit(isp_cleanup); | |||
2234 | MODULE_AUTHOR("Nokia Corporation"); | 2234 | MODULE_AUTHOR("Nokia Corporation"); |
2235 | MODULE_DESCRIPTION("TI OMAP3 ISP driver"); | 2235 | MODULE_DESCRIPTION("TI OMAP3 ISP driver"); |
2236 | MODULE_LICENSE("GPL"); | 2236 | MODULE_LICENSE("GPL"); |
2237 | MODULE_VERSION(ISP_VIDEO_DRIVER_VERSION); | ||
diff --git a/drivers/media/video/omap3isp/ispvideo.c b/drivers/media/video/omap3isp/ispvideo.c index 9cd8f1aa567b..fd965adfd597 100644 --- a/drivers/media/video/omap3isp/ispvideo.c +++ b/drivers/media/video/omap3isp/ispvideo.c | |||
@@ -695,7 +695,6 @@ isp_video_querycap(struct file *file, void *fh, struct v4l2_capability *cap) | |||
695 | strlcpy(cap->driver, ISP_VIDEO_DRIVER_NAME, sizeof(cap->driver)); | 695 | strlcpy(cap->driver, ISP_VIDEO_DRIVER_NAME, sizeof(cap->driver)); |
696 | strlcpy(cap->card, video->video.name, sizeof(cap->card)); | 696 | strlcpy(cap->card, video->video.name, sizeof(cap->card)); |
697 | strlcpy(cap->bus_info, "media", sizeof(cap->bus_info)); | 697 | strlcpy(cap->bus_info, "media", sizeof(cap->bus_info)); |
698 | cap->version = ISP_VIDEO_DRIVER_VERSION; | ||
699 | 698 | ||
700 | if (video->type == V4L2_BUF_TYPE_VIDEO_CAPTURE) | 699 | if (video->type == V4L2_BUF_TYPE_VIDEO_CAPTURE) |
701 | cap->capabilities = V4L2_CAP_VIDEO_CAPTURE | V4L2_CAP_STREAMING; | 700 | cap->capabilities = V4L2_CAP_VIDEO_CAPTURE | V4L2_CAP_STREAMING; |
diff --git a/drivers/media/video/omap3isp/ispvideo.h b/drivers/media/video/omap3isp/ispvideo.h index 911bea64e78a..53160aa24e6e 100644 --- a/drivers/media/video/omap3isp/ispvideo.h +++ b/drivers/media/video/omap3isp/ispvideo.h | |||
@@ -27,7 +27,6 @@ | |||
27 | #define OMAP3_ISP_VIDEO_H | 27 | #define OMAP3_ISP_VIDEO_H |
28 | 28 | ||
29 | #include <linux/v4l2-mediabus.h> | 29 | #include <linux/v4l2-mediabus.h> |
30 | #include <linux/version.h> | ||
31 | #include <media/media-entity.h> | 30 | #include <media/media-entity.h> |
32 | #include <media/v4l2-dev.h> | 31 | #include <media/v4l2-dev.h> |
33 | #include <media/v4l2-fh.h> | 32 | #include <media/v4l2-fh.h> |
@@ -35,7 +34,7 @@ | |||
35 | #include "ispqueue.h" | 34 | #include "ispqueue.h" |
36 | 35 | ||
37 | #define ISP_VIDEO_DRIVER_NAME "ispvideo" | 36 | #define ISP_VIDEO_DRIVER_NAME "ispvideo" |
38 | #define ISP_VIDEO_DRIVER_VERSION KERNEL_VERSION(0, 0, 1) | 37 | #define ISP_VIDEO_DRIVER_VERSION "0.0.2" |
39 | 38 | ||
40 | struct isp_device; | 39 | struct isp_device; |
41 | struct isp_video; | 40 | struct isp_video; |
diff --git a/drivers/media/video/pxa_camera.c b/drivers/media/video/pxa_camera.c index b42bfa5ccdf2..c5b27a4cda30 100644 --- a/drivers/media/video/pxa_camera.c +++ b/drivers/media/video/pxa_camera.c | |||
@@ -22,7 +22,6 @@ | |||
22 | #include <linux/mm.h> | 22 | #include <linux/mm.h> |
23 | #include <linux/moduleparam.h> | 23 | #include <linux/moduleparam.h> |
24 | #include <linux/time.h> | 24 | #include <linux/time.h> |
25 | #include <linux/version.h> | ||
26 | #include <linux/device.h> | 25 | #include <linux/device.h> |
27 | #include <linux/platform_device.h> | 26 | #include <linux/platform_device.h> |
28 | #include <linux/clk.h> | 27 | #include <linux/clk.h> |
@@ -40,7 +39,7 @@ | |||
40 | #include <mach/dma.h> | 39 | #include <mach/dma.h> |
41 | #include <mach/camera.h> | 40 | #include <mach/camera.h> |
42 | 41 | ||
43 | #define PXA_CAM_VERSION_CODE KERNEL_VERSION(0, 0, 5) | 42 | #define PXA_CAM_VERSION "0.0.6" |
44 | #define PXA_CAM_DRV_NAME "pxa27x-camera" | 43 | #define PXA_CAM_DRV_NAME "pxa27x-camera" |
45 | 44 | ||
46 | /* Camera Interface */ | 45 | /* Camera Interface */ |
@@ -1578,7 +1577,6 @@ static int pxa_camera_querycap(struct soc_camera_host *ici, | |||
1578 | { | 1577 | { |
1579 | /* cap->name is set by the firendly caller:-> */ | 1578 | /* cap->name is set by the firendly caller:-> */ |
1580 | strlcpy(cap->card, pxa_cam_driver_description, sizeof(cap->card)); | 1579 | strlcpy(cap->card, pxa_cam_driver_description, sizeof(cap->card)); |
1581 | cap->version = PXA_CAM_VERSION_CODE; | ||
1582 | cap->capabilities = V4L2_CAP_VIDEO_CAPTURE | V4L2_CAP_STREAMING; | 1580 | cap->capabilities = V4L2_CAP_VIDEO_CAPTURE | V4L2_CAP_STREAMING; |
1583 | 1581 | ||
1584 | return 0; | 1582 | return 0; |
@@ -1843,4 +1841,5 @@ module_exit(pxa_camera_exit); | |||
1843 | MODULE_DESCRIPTION("PXA27x SoC Camera Host driver"); | 1841 | MODULE_DESCRIPTION("PXA27x SoC Camera Host driver"); |
1844 | MODULE_AUTHOR("Guennadi Liakhovetski <kernel@pengutronix.de>"); | 1842 | MODULE_AUTHOR("Guennadi Liakhovetski <kernel@pengutronix.de>"); |
1845 | MODULE_LICENSE("GPL"); | 1843 | MODULE_LICENSE("GPL"); |
1844 | MODULE_VERSION(PXA_CAM_VERSION); | ||
1846 | MODULE_ALIAS("platform:" PXA_CAM_DRV_NAME); | 1845 | MODULE_ALIAS("platform:" PXA_CAM_DRV_NAME); |
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); | ||
diff --git a/drivers/media/video/s5p-fimc/fimc-capture.c b/drivers/media/video/s5p-fimc/fimc-capture.c index 81b4a826ee5e..0d730e55605d 100644 --- a/drivers/media/video/s5p-fimc/fimc-capture.c +++ b/drivers/media/video/s5p-fimc/fimc-capture.c | |||
@@ -11,7 +11,6 @@ | |||
11 | 11 | ||
12 | #include <linux/module.h> | 12 | #include <linux/module.h> |
13 | #include <linux/kernel.h> | 13 | #include <linux/kernel.h> |
14 | #include <linux/version.h> | ||
15 | #include <linux/types.h> | 14 | #include <linux/types.h> |
16 | #include <linux/errno.h> | 15 | #include <linux/errno.h> |
17 | #include <linux/bug.h> | 16 | #include <linux/bug.h> |
@@ -451,7 +450,6 @@ static int fimc_vidioc_querycap_capture(struct file *file, void *priv, | |||
451 | strncpy(cap->driver, fimc->pdev->name, sizeof(cap->driver) - 1); | 450 | strncpy(cap->driver, fimc->pdev->name, sizeof(cap->driver) - 1); |
452 | strncpy(cap->card, fimc->pdev->name, sizeof(cap->card) - 1); | 451 | strncpy(cap->card, fimc->pdev->name, sizeof(cap->card) - 1); |
453 | cap->bus_info[0] = 0; | 452 | cap->bus_info[0] = 0; |
454 | cap->version = KERNEL_VERSION(1, 0, 0); | ||
455 | cap->capabilities = V4L2_CAP_STREAMING | V4L2_CAP_VIDEO_CAPTURE | | 453 | cap->capabilities = V4L2_CAP_STREAMING | V4L2_CAP_VIDEO_CAPTURE | |
456 | V4L2_CAP_VIDEO_CAPTURE_MPLANE; | 454 | V4L2_CAP_VIDEO_CAPTURE_MPLANE; |
457 | 455 | ||
diff --git a/drivers/media/video/s5p-fimc/fimc-core.c b/drivers/media/video/s5p-fimc/fimc-core.c index bdf19ada9172..aa550666cc0b 100644 --- a/drivers/media/video/s5p-fimc/fimc-core.c +++ b/drivers/media/video/s5p-fimc/fimc-core.c | |||
@@ -12,7 +12,6 @@ | |||
12 | 12 | ||
13 | #include <linux/module.h> | 13 | #include <linux/module.h> |
14 | #include <linux/kernel.h> | 14 | #include <linux/kernel.h> |
15 | #include <linux/version.h> | ||
16 | #include <linux/types.h> | 15 | #include <linux/types.h> |
17 | #include <linux/errno.h> | 16 | #include <linux/errno.h> |
18 | #include <linux/bug.h> | 17 | #include <linux/bug.h> |
@@ -774,7 +773,6 @@ static int fimc_m2m_querycap(struct file *file, void *priv, | |||
774 | strncpy(cap->driver, fimc->pdev->name, sizeof(cap->driver) - 1); | 773 | strncpy(cap->driver, fimc->pdev->name, sizeof(cap->driver) - 1); |
775 | strncpy(cap->card, fimc->pdev->name, sizeof(cap->card) - 1); | 774 | strncpy(cap->card, fimc->pdev->name, sizeof(cap->card) - 1); |
776 | cap->bus_info[0] = 0; | 775 | cap->bus_info[0] = 0; |
777 | cap->version = KERNEL_VERSION(1, 0, 0); | ||
778 | cap->capabilities = V4L2_CAP_STREAMING | | 776 | cap->capabilities = V4L2_CAP_STREAMING | |
779 | V4L2_CAP_VIDEO_CAPTURE | V4L2_CAP_VIDEO_OUTPUT | | 777 | V4L2_CAP_VIDEO_CAPTURE | V4L2_CAP_VIDEO_OUTPUT | |
780 | V4L2_CAP_VIDEO_CAPTURE_MPLANE | V4L2_CAP_VIDEO_OUTPUT_MPLANE; | 778 | V4L2_CAP_VIDEO_CAPTURE_MPLANE | V4L2_CAP_VIDEO_OUTPUT_MPLANE; |
@@ -1937,3 +1935,4 @@ module_exit(fimc_exit); | |||
1937 | MODULE_AUTHOR("Sylwester Nawrocki <s.nawrocki@samsung.com>"); | 1935 | MODULE_AUTHOR("Sylwester Nawrocki <s.nawrocki@samsung.com>"); |
1938 | MODULE_DESCRIPTION("S5P FIMC camera host interface/video postprocessor driver"); | 1936 | MODULE_DESCRIPTION("S5P FIMC camera host interface/video postprocessor driver"); |
1939 | MODULE_LICENSE("GPL"); | 1937 | MODULE_LICENSE("GPL"); |
1938 | MODULE_VERSION("1.0.1"); | ||
diff --git a/drivers/media/video/sh_mobile_ceu_camera.c b/drivers/media/video/sh_mobile_ceu_camera.c index 3ae5c9c58cba..aa48e271ffc9 100644 --- a/drivers/media/video/sh_mobile_ceu_camera.c +++ b/drivers/media/video/sh_mobile_ceu_camera.c | |||
@@ -27,7 +27,6 @@ | |||
27 | #include <linux/mm.h> | 27 | #include <linux/mm.h> |
28 | #include <linux/moduleparam.h> | 28 | #include <linux/moduleparam.h> |
29 | #include <linux/time.h> | 29 | #include <linux/time.h> |
30 | #include <linux/version.h> | ||
31 | #include <linux/slab.h> | 30 | #include <linux/slab.h> |
32 | #include <linux/device.h> | 31 | #include <linux/device.h> |
33 | #include <linux/platform_device.h> | 32 | #include <linux/platform_device.h> |
@@ -1827,7 +1826,6 @@ static int sh_mobile_ceu_querycap(struct soc_camera_host *ici, | |||
1827 | struct v4l2_capability *cap) | 1826 | struct v4l2_capability *cap) |
1828 | { | 1827 | { |
1829 | strlcpy(cap->card, "SuperH_Mobile_CEU", sizeof(cap->card)); | 1828 | strlcpy(cap->card, "SuperH_Mobile_CEU", sizeof(cap->card)); |
1830 | cap->version = KERNEL_VERSION(0, 0, 5); | ||
1831 | cap->capabilities = V4L2_CAP_VIDEO_CAPTURE | V4L2_CAP_STREAMING; | 1829 | cap->capabilities = V4L2_CAP_VIDEO_CAPTURE | V4L2_CAP_STREAMING; |
1832 | return 0; | 1830 | return 0; |
1833 | } | 1831 | } |
@@ -2158,4 +2156,5 @@ module_exit(sh_mobile_ceu_exit); | |||
2158 | MODULE_DESCRIPTION("SuperH Mobile CEU driver"); | 2156 | MODULE_DESCRIPTION("SuperH Mobile CEU driver"); |
2159 | MODULE_AUTHOR("Magnus Damm"); | 2157 | MODULE_AUTHOR("Magnus Damm"); |
2160 | MODULE_LICENSE("GPL"); | 2158 | MODULE_LICENSE("GPL"); |
2159 | MODULE_VERSION("0.0.6"); | ||
2161 | MODULE_ALIAS("platform:sh_mobile_ceu"); | 2160 | MODULE_ALIAS("platform:sh_mobile_ceu"); |
diff --git a/drivers/media/video/sh_vou.c b/drivers/media/video/sh_vou.c index 07cf0c6c7c1f..6a729879d89e 100644 --- a/drivers/media/video/sh_vou.c +++ b/drivers/media/video/sh_vou.c | |||
@@ -19,7 +19,6 @@ | |||
19 | #include <linux/platform_device.h> | 19 | #include <linux/platform_device.h> |
20 | #include <linux/pm_runtime.h> | 20 | #include <linux/pm_runtime.h> |
21 | #include <linux/slab.h> | 21 | #include <linux/slab.h> |
22 | #include <linux/version.h> | ||
23 | #include <linux/videodev2.h> | 22 | #include <linux/videodev2.h> |
24 | 23 | ||
25 | #include <media/sh_vou.h> | 24 | #include <media/sh_vou.h> |
@@ -393,7 +392,6 @@ static int sh_vou_querycap(struct file *file, void *priv, | |||
393 | dev_dbg(vou_file->vbq.dev, "%s()\n", __func__); | 392 | dev_dbg(vou_file->vbq.dev, "%s()\n", __func__); |
394 | 393 | ||
395 | strlcpy(cap->card, "SuperH VOU", sizeof(cap->card)); | 394 | strlcpy(cap->card, "SuperH VOU", sizeof(cap->card)); |
396 | cap->version = KERNEL_VERSION(0, 1, 0); | ||
397 | cap->capabilities = V4L2_CAP_VIDEO_OUTPUT | V4L2_CAP_STREAMING; | 395 | cap->capabilities = V4L2_CAP_VIDEO_OUTPUT | V4L2_CAP_STREAMING; |
398 | return 0; | 396 | return 0; |
399 | } | 397 | } |
@@ -1490,4 +1488,5 @@ module_exit(sh_vou_exit); | |||
1490 | MODULE_DESCRIPTION("SuperH VOU driver"); | 1488 | MODULE_DESCRIPTION("SuperH VOU driver"); |
1491 | MODULE_AUTHOR("Guennadi Liakhovetski <g.liakhovetski@gmx.de>"); | 1489 | MODULE_AUTHOR("Guennadi Liakhovetski <g.liakhovetski@gmx.de>"); |
1492 | MODULE_LICENSE("GPL v2"); | 1490 | MODULE_LICENSE("GPL v2"); |
1491 | MODULE_VERSION("0.1.0"); | ||
1493 | MODULE_ALIAS("platform:sh-vou"); | 1492 | MODULE_ALIAS("platform:sh-vou"); |