aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/radio
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil@xs4all.nl>2008-08-23 05:23:55 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2008-10-12 07:36:54 -0400
commitaa5e90af7d78d1711f8f4275ce3638817c0023dc (patch)
tree5faee2ec9fe16d72fba3c729c7a81354dace8fd8 /drivers/media/radio
parentf9e86b5e9d068854a2cf40f8003ef639e80cca6c (diff)
V4L/DVB (8783): v4l: add all missing video_device release callbacks
All drivers that call video_device_register where checked to see if they set the release callback of struct video_device. Where that callback was missing it was added. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/radio')
-rw-r--r--drivers/media/radio/radio-aimslab.c1
-rw-r--r--drivers/media/radio/radio-aztech.c7
-rw-r--r--drivers/media/radio/radio-cadet.c1
-rw-r--r--drivers/media/radio/radio-gemtek-pci.c7
-rw-r--r--drivers/media/radio/radio-gemtek.c7
-rw-r--r--drivers/media/radio/radio-maestro.c1
-rw-r--r--drivers/media/radio/radio-maxiradio.c7
-rw-r--r--drivers/media/radio/radio-rtrack2.c1
-rw-r--r--drivers/media/radio/radio-sf16fmi.c1
-rw-r--r--drivers/media/radio/radio-sf16fmr2.c1
-rw-r--r--drivers/media/radio/radio-terratec.c1
-rw-r--r--drivers/media/radio/radio-trust.c1
-rw-r--r--drivers/media/radio/radio-typhoon.c1
-rw-r--r--drivers/media/radio/radio-zoltrix.c1
14 files changed, 26 insertions, 12 deletions
diff --git a/drivers/media/radio/radio-aimslab.c b/drivers/media/radio/radio-aimslab.c
index b657c7bb47cc..59fdaf85e41b 100644
--- a/drivers/media/radio/radio-aimslab.c
+++ b/drivers/media/radio/radio-aimslab.c
@@ -420,6 +420,7 @@ static struct video_device rtrack_radio = {
420 .name = "RadioTrack radio", 420 .name = "RadioTrack radio",
421 .fops = &rtrack_fops, 421 .fops = &rtrack_fops,
422 .ioctl_ops = &rtrack_ioctl_ops, 422 .ioctl_ops = &rtrack_ioctl_ops,
423 .release = video_device_release_empty,
423}; 424};
424 425
425static int __init rtrack_init(void) 426static int __init rtrack_init(void)
diff --git a/drivers/media/radio/radio-aztech.c b/drivers/media/radio/radio-aztech.c
index ae18a7cf0d59..ddd96295a9fe 100644
--- a/drivers/media/radio/radio-aztech.c
+++ b/drivers/media/radio/radio-aztech.c
@@ -381,9 +381,10 @@ static const struct v4l2_ioctl_ops aztech_ioctl_ops = {
381}; 381};
382 382
383static struct video_device aztech_radio = { 383static struct video_device aztech_radio = {
384 .name = "Aztech radio", 384 .name = "Aztech radio",
385 .fops = &aztech_fops, 385 .fops = &aztech_fops,
386 .ioctl_ops = &aztech_ioctl_ops, 386 .ioctl_ops = &aztech_ioctl_ops,
387 .release = video_device_release_empty,
387}; 388};
388 389
389module_param_named(debug,aztech_radio.debug, int, 0644); 390module_param_named(debug,aztech_radio.debug, int, 0644);
diff --git a/drivers/media/radio/radio-cadet.c b/drivers/media/radio/radio-cadet.c
index 04c3698d32e4..0490a1fa999d 100644
--- a/drivers/media/radio/radio-cadet.c
+++ b/drivers/media/radio/radio-cadet.c
@@ -589,6 +589,7 @@ static struct video_device cadet_radio = {
589 .name = "Cadet radio", 589 .name = "Cadet radio",
590 .fops = &cadet_fops, 590 .fops = &cadet_fops,
591 .ioctl_ops = &cadet_ioctl_ops, 591 .ioctl_ops = &cadet_ioctl_ops,
592 .release = video_device_release_empty,
592}; 593};
593 594
594#ifdef CONFIG_PNP 595#ifdef CONFIG_PNP
diff --git a/drivers/media/radio/radio-gemtek-pci.c b/drivers/media/radio/radio-gemtek-pci.c
index a7b9a5df4ca7..d65fd287bde1 100644
--- a/drivers/media/radio/radio-gemtek-pci.c
+++ b/drivers/media/radio/radio-gemtek-pci.c
@@ -401,9 +401,10 @@ static const struct v4l2_ioctl_ops gemtek_pci_ioctl_ops = {
401}; 401};
402 402
403static struct video_device vdev_template = { 403static struct video_device vdev_template = {
404 .name = "Gemtek PCI Radio", 404 .name = "Gemtek PCI Radio",
405 .fops = &gemtek_pci_fops, 405 .fops = &gemtek_pci_fops,
406 .ioctl_ops = &gemtek_pci_ioctl_ops, 406 .ioctl_ops = &gemtek_pci_ioctl_ops,
407 .release = video_device_release_empty,
407}; 408};
408 409
409static int __devinit gemtek_pci_probe( struct pci_dev *pci_dev, const struct pci_device_id *pci_id ) 410static int __devinit gemtek_pci_probe( struct pci_dev *pci_dev, const struct pci_device_id *pci_id )
diff --git a/drivers/media/radio/radio-gemtek.c b/drivers/media/radio/radio-gemtek.c
index cc90329026f2..2d991ae2f205 100644
--- a/drivers/media/radio/radio-gemtek.c
+++ b/drivers/media/radio/radio-gemtek.c
@@ -581,9 +581,10 @@ static const struct v4l2_ioctl_ops gemtek_ioctl_ops = {
581}; 581};
582 582
583static struct video_device gemtek_radio = { 583static struct video_device gemtek_radio = {
584 .name = "GemTek Radio card", 584 .name = "GemTek Radio card",
585 .fops = &gemtek_fops, 585 .fops = &gemtek_fops,
586 .ioctl_ops = &gemtek_ioctl_ops, 586 .ioctl_ops = &gemtek_ioctl_ops,
587 .release = video_device_release_empty,
587}; 588};
588 589
589/* 590/*
diff --git a/drivers/media/radio/radio-maestro.c b/drivers/media/radio/radio-maestro.c
index 03c20948eef2..182b433981ca 100644
--- a/drivers/media/radio/radio-maestro.c
+++ b/drivers/media/radio/radio-maestro.c
@@ -388,6 +388,7 @@ static struct video_device maestro_radio = {
388 .name = "Maestro radio", 388 .name = "Maestro radio",
389 .fops = &maestro_fops, 389 .fops = &maestro_fops,
390 .ioctl_ops = &maestro_ioctl_ops, 390 .ioctl_ops = &maestro_ioctl_ops,
391 .release = video_device_release,
391}; 392};
392 393
393static int __devinit maestro_probe(struct pci_dev *pdev, 394static int __devinit maestro_probe(struct pci_dev *pdev,
diff --git a/drivers/media/radio/radio-maxiradio.c b/drivers/media/radio/radio-maxiradio.c
index 263ef8b02fd8..4e2e8a3d9b5f 100644
--- a/drivers/media/radio/radio-maxiradio.c
+++ b/drivers/media/radio/radio-maxiradio.c
@@ -402,9 +402,10 @@ static const struct v4l2_ioctl_ops maxiradio_ioctl_ops = {
402}; 402};
403 403
404static struct video_device maxiradio_radio = { 404static struct video_device maxiradio_radio = {
405 .name = "Maxi Radio FM2000 radio", 405 .name = "Maxi Radio FM2000 radio",
406 .fops = &maxiradio_fops, 406 .fops = &maxiradio_fops,
407 .ioctl_ops = &maxiradio_ioctl_ops, 407 .ioctl_ops = &maxiradio_ioctl_ops,
408 .release = video_device_release_empty,
408}; 409};
409 410
410static int __devinit maxiradio_init_one(struct pci_dev *pdev, const struct pci_device_id *ent) 411static int __devinit maxiradio_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
diff --git a/drivers/media/radio/radio-rtrack2.c b/drivers/media/radio/radio-rtrack2.c
index 5b93b47be714..8fe820da73e8 100644
--- a/drivers/media/radio/radio-rtrack2.c
+++ b/drivers/media/radio/radio-rtrack2.c
@@ -326,6 +326,7 @@ static struct video_device rtrack2_radio = {
326 .name = "RadioTrack II radio", 326 .name = "RadioTrack II radio",
327 .fops = &rtrack2_fops, 327 .fops = &rtrack2_fops,
328 .ioctl_ops = &rtrack2_ioctl_ops, 328 .ioctl_ops = &rtrack2_ioctl_ops,
329 .release = video_device_release_empty,
329}; 330};
330 331
331static int __init rtrack2_init(void) 332static int __init rtrack2_init(void)
diff --git a/drivers/media/radio/radio-sf16fmi.c b/drivers/media/radio/radio-sf16fmi.c
index 55f8334513f3..6d865a7a91ec 100644
--- a/drivers/media/radio/radio-sf16fmi.c
+++ b/drivers/media/radio/radio-sf16fmi.c
@@ -326,6 +326,7 @@ static struct video_device fmi_radio = {
326 .name = "SF16FMx radio", 326 .name = "SF16FMx radio",
327 .fops = &fmi_fops, 327 .fops = &fmi_fops,
328 .ioctl_ops = &fmi_ioctl_ops, 328 .ioctl_ops = &fmi_ioctl_ops,
329 .release = video_device_release_empty,
329}; 330};
330 331
331/* ladis: this is my card. does any other types exist? */ 332/* ladis: this is my card. does any other types exist? */
diff --git a/drivers/media/radio/radio-sf16fmr2.c b/drivers/media/radio/radio-sf16fmr2.c
index 14153ed939d0..9625d1f0194e 100644
--- a/drivers/media/radio/radio-sf16fmr2.c
+++ b/drivers/media/radio/radio-sf16fmr2.c
@@ -442,6 +442,7 @@ static struct video_device fmr2_radio = {
442 .name = "SF16FMR2 radio", 442 .name = "SF16FMR2 radio",
443 .fops = &fmr2_fops, 443 .fops = &fmr2_fops,
444 .ioctl_ops = &fmr2_ioctl_ops, 444 .ioctl_ops = &fmr2_ioctl_ops,
445 .release = video_device_release_empty,
445}; 446};
446 447
447static int __init fmr2_init(void) 448static int __init fmr2_init(void)
diff --git a/drivers/media/radio/radio-terratec.c b/drivers/media/radio/radio-terratec.c
index eed14972a940..de13ec81ce49 100644
--- a/drivers/media/radio/radio-terratec.c
+++ b/drivers/media/radio/radio-terratec.c
@@ -398,6 +398,7 @@ static struct video_device terratec_radio = {
398 .name = "TerraTec ActiveRadio", 398 .name = "TerraTec ActiveRadio",
399 .fops = &terratec_fops, 399 .fops = &terratec_fops,
400 .ioctl_ops = &terratec_ioctl_ops, 400 .ioctl_ops = &terratec_ioctl_ops,
401 .release = video_device_release_empty,
401}; 402};
402 403
403static int __init terratec_init(void) 404static int __init terratec_init(void)
diff --git a/drivers/media/radio/radio-trust.c b/drivers/media/radio/radio-trust.c
index dd0c425ef3b8..e7b111fcd105 100644
--- a/drivers/media/radio/radio-trust.c
+++ b/drivers/media/radio/radio-trust.c
@@ -378,6 +378,7 @@ static struct video_device trust_radio = {
378 .name = "Trust FM Radio", 378 .name = "Trust FM Radio",
379 .fops = &trust_fops, 379 .fops = &trust_fops,
380 .ioctl_ops = &trust_ioctl_ops, 380 .ioctl_ops = &trust_ioctl_ops,
381 .release = video_device_release_empty,
381}; 382};
382 383
383static int __init trust_init(void) 384static int __init trust_init(void)
diff --git a/drivers/media/radio/radio-typhoon.c b/drivers/media/radio/radio-typhoon.c
index 878468507237..c2eedb7a73a5 100644
--- a/drivers/media/radio/radio-typhoon.c
+++ b/drivers/media/radio/radio-typhoon.c
@@ -375,6 +375,7 @@ static struct video_device typhoon_radio = {
375 .name = "Typhoon Radio", 375 .name = "Typhoon Radio",
376 .fops = &typhoon_fops, 376 .fops = &typhoon_fops,
377 .ioctl_ops = &typhoon_ioctl_ops, 377 .ioctl_ops = &typhoon_ioctl_ops,
378 .release = video_device_release_empty,
378}; 379};
379 380
380#ifdef CONFIG_RADIO_TYPHOON_PROC_FS 381#ifdef CONFIG_RADIO_TYPHOON_PROC_FS
diff --git a/drivers/media/radio/radio-zoltrix.c b/drivers/media/radio/radio-zoltrix.c
index 4d76e710194b..0d43e8401eb5 100644
--- a/drivers/media/radio/radio-zoltrix.c
+++ b/drivers/media/radio/radio-zoltrix.c
@@ -439,6 +439,7 @@ static struct video_device zoltrix_radio = {
439 .name = "Zoltrix Radio Plus", 439 .name = "Zoltrix Radio Plus",
440 .fops = &zoltrix_fops, 440 .fops = &zoltrix_fops,
441 .ioctl_ops = &zoltrix_ioctl_ops, 441 .ioctl_ops = &zoltrix_ioctl_ops,
442 .release = video_device_release_empty,
442}; 443};
443 444
444static int __init zoltrix_init(void) 445static int __init zoltrix_init(void)