diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-06-25 09:15:42 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-07-27 16:53:16 -0400 |
commit | 29834c1ac7589c72996c5d02349d63fd397ef131 (patch) | |
tree | 60d5bfadc2bc4f88938640a6d11ff0983b5f5fd4 /drivers/media/radio/radio-rtrack2.c | |
parent | 64dc3c1a906467d90c24913b0b38dd13d9378f4f (diff) |
[media] radio: Use the subsystem version control for VIDIOC_QUERYCAP
Just like the video drivers, the right thing to do is to use
the per-subsystem version control.
Acked-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/radio/radio-rtrack2.c')
-rw-r--r-- | drivers/media/radio/radio-rtrack2.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/media/radio/radio-rtrack2.c b/drivers/media/radio/radio-rtrack2.c index 8d6ea591bd18..3628be617ee9 100644 --- a/drivers/media/radio/radio-rtrack2.c +++ b/drivers/media/radio/radio-rtrack2.c | |||
@@ -15,7 +15,6 @@ | |||
15 | #include <linux/delay.h> /* udelay */ | 15 | #include <linux/delay.h> /* udelay */ |
16 | #include <linux/videodev2.h> /* kernel radio structs */ | 16 | #include <linux/videodev2.h> /* kernel radio structs */ |
17 | #include <linux/mutex.h> | 17 | #include <linux/mutex.h> |
18 | #include <linux/version.h> /* for KERNEL_VERSION MACRO */ | ||
19 | #include <linux/io.h> /* outb, outb_p */ | 18 | #include <linux/io.h> /* outb, outb_p */ |
20 | #include <media/v4l2-device.h> | 19 | #include <media/v4l2-device.h> |
21 | #include <media/v4l2-ioctl.h> | 20 | #include <media/v4l2-ioctl.h> |
@@ -23,6 +22,7 @@ | |||
23 | MODULE_AUTHOR("Ben Pfaff"); | 22 | MODULE_AUTHOR("Ben Pfaff"); |
24 | MODULE_DESCRIPTION("A driver for the RadioTrack II radio card."); | 23 | MODULE_DESCRIPTION("A driver for the RadioTrack II radio card."); |
25 | MODULE_LICENSE("GPL"); | 24 | MODULE_LICENSE("GPL"); |
25 | MODULE_VERSION("0.0.3"); | ||
26 | 26 | ||
27 | #ifndef CONFIG_RADIO_RTRACK2_PORT | 27 | #ifndef CONFIG_RADIO_RTRACK2_PORT |
28 | #define CONFIG_RADIO_RTRACK2_PORT -1 | 28 | #define CONFIG_RADIO_RTRACK2_PORT -1 |
@@ -35,8 +35,6 @@ module_param(io, int, 0); | |||
35 | MODULE_PARM_DESC(io, "I/O address of the RadioTrack card (0x20c or 0x30c)"); | 35 | MODULE_PARM_DESC(io, "I/O address of the RadioTrack card (0x20c or 0x30c)"); |
36 | module_param(radio_nr, int, 0); | 36 | module_param(radio_nr, int, 0); |
37 | 37 | ||
38 | #define RADIO_VERSION KERNEL_VERSION(0, 0, 2) | ||
39 | |||
40 | struct rtrack2 | 38 | struct rtrack2 |
41 | { | 39 | { |
42 | struct v4l2_device v4l2_dev; | 40 | struct v4l2_device v4l2_dev; |
@@ -121,7 +119,6 @@ static int vidioc_querycap(struct file *file, void *priv, | |||
121 | strlcpy(v->driver, "radio-rtrack2", sizeof(v->driver)); | 119 | strlcpy(v->driver, "radio-rtrack2", sizeof(v->driver)); |
122 | strlcpy(v->card, "RadioTrack II", sizeof(v->card)); | 120 | strlcpy(v->card, "RadioTrack II", sizeof(v->card)); |
123 | strlcpy(v->bus_info, "ISA", sizeof(v->bus_info)); | 121 | strlcpy(v->bus_info, "ISA", sizeof(v->bus_info)); |
124 | v->version = RADIO_VERSION; | ||
125 | v->capabilities = V4L2_CAP_TUNER | V4L2_CAP_RADIO; | 122 | v->capabilities = V4L2_CAP_TUNER | V4L2_CAP_RADIO; |
126 | return 0; | 123 | return 0; |
127 | } | 124 | } |