aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2006-06-08 16:16:46 -0400
committerMauro Carvalho Chehab <mchehab@infradead.org>2006-06-25 01:05:06 -0400
commit2ed64eb9e7b4cf27055f78a7bd2ccf33a912d0cd (patch)
treebe2e88bf167c3015a1da9edac94ba863e8f5da6e
parent60110ce2b2ce74d8a49a4600ce58ba0b44f82800 (diff)
V4L/DVB (4086): There were a cross-reference on cpia and cpia_pp/cpia_usb
Those cross-references were generating an error: *** Warning: "cpia_pp_init" [/home/v4l/master/v4l/cpia.ko] undefined! *** Warning: "cpia_usb/_init" [/home/v4l/master/v4l/cpia.ko] undefined! Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
-rw-r--r--drivers/media/video/cpia.c14
-rw-r--r--drivers/media/video/cpia_pp.c8
-rw-r--r--drivers/media/video/cpia_usb.c6
3 files changed, 7 insertions, 21 deletions
diff --git a/drivers/media/video/cpia.c b/drivers/media/video/cpia.c
index b8d49131181..95c5aceecc5 100644
--- a/drivers/media/video/cpia.c
+++ b/drivers/media/video/cpia.c
@@ -47,13 +47,6 @@
47 47
48#include "cpia.h" 48#include "cpia.h"
49 49
50#ifdef CONFIG_VIDEO_CPIA_PP
51extern int cpia_pp_init(void);
52#endif
53#ifdef CONFIG_VIDEO_CPIA_USB
54extern int cpia_usb_init(void);
55#endif
56
57static int video_nr = -1; 50static int video_nr = -1;
58 51
59#ifdef MODULE 52#ifdef MODULE
@@ -4047,13 +4040,6 @@ static int __init cpia_init(void)
4047 proc_cpia_create(); 4040 proc_cpia_create();
4048#endif 4041#endif
4049 4042
4050#ifdef CONFIG_VIDEO_CPIA_PP
4051 cpia_pp_init();
4052#endif
4053#ifdef CONFIG_VIDEO_CPIA_USB
4054 cpia_usb_init();
4055#endif
4056
4057 return 0; 4043 return 0;
4058} 4044}
4059 4045
diff --git a/drivers/media/video/cpia_pp.c b/drivers/media/video/cpia_pp.c
index 0b00e6027df..4c89bd395d3 100644
--- a/drivers/media/video/cpia_pp.c
+++ b/drivers/media/video/cpia_pp.c
@@ -803,7 +803,7 @@ static struct parport_driver cpia_pp_driver = {
803 .detach = cpia_pp_detach, 803 .detach = cpia_pp_detach,
804}; 804};
805 805
806int cpia_pp_init(void) 806static int cpia_pp_init(void)
807{ 807{
808 printk(KERN_INFO "%s v%d.%d.%d\n",ABOUT, 808 printk(KERN_INFO "%s v%d.%d.%d\n",ABOUT,
809 CPIA_PP_MAJ_VER,CPIA_PP_MIN_VER,CPIA_PP_PATCH_VER); 809 CPIA_PP_MAJ_VER,CPIA_PP_MIN_VER,CPIA_PP_PATCH_VER);
@@ -860,6 +860,8 @@ void cleanup_module(void)
860 860
861static int __init cpia_pp_setup(char *str) 861static int __init cpia_pp_setup(char *str)
862{ 862{
863 int err;
864
863 if (!strncmp(str, "parport", 7)) { 865 if (!strncmp(str, "parport", 7)) {
864 int n = simple_strtoul(str + 7, NULL, 10); 866 int n = simple_strtoul(str + 7, NULL, 10);
865 if (parport_ptr < PARPORT_MAX) { 867 if (parport_ptr < PARPORT_MAX) {
@@ -873,6 +875,10 @@ static int __init cpia_pp_setup(char *str)
873 parport_nr[parport_ptr++] = PPCPIA_PARPORT_NONE; 875 parport_nr[parport_ptr++] = PPCPIA_PARPORT_NONE;
874 } 876 }
875 877
878 err=cpia_pp_init();
879 if (err)
880 return err;
881
876 return 1; 882 return 1;
877} 883}
878 884
diff --git a/drivers/media/video/cpia_usb.c b/drivers/media/video/cpia_usb.c
index 9c49a4b0011..2ee34a3b928 100644
--- a/drivers/media/video/cpia_usb.c
+++ b/drivers/media/video/cpia_usb.c
@@ -474,12 +474,6 @@ static int cpia_usb_close(void *privdata)
474 return 0; 474 return 0;
475} 475}
476 476
477int cpia_usb_init(void)
478{
479 /* return -ENODEV; */
480 return 0;
481}
482
483/* Probing and initializing */ 477/* Probing and initializing */
484 478
485static int cpia_probe(struct usb_interface *intf, 479static int cpia_probe(struct usb_interface *intf,