Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 29996
b: refs/heads/master
c: 2ed64eb
h: refs/heads/master
v: v3
  • Loading branch information
Mauro Carvalho Chehab committed Jun 25, 2006
1 parent 545ecdb commit c56f470
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 22 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 60110ce2b2ce74d8a49a4600ce58ba0b44f82800
refs/heads/master: 2ed64eb9e7b4cf27055f78a7bd2ccf33a912d0cd
14 changes: 0 additions & 14 deletions trunk/drivers/media/video/cpia.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,6 @@

#include "cpia.h"

#ifdef CONFIG_VIDEO_CPIA_PP
extern int cpia_pp_init(void);
#endif
#ifdef CONFIG_VIDEO_CPIA_USB
extern int cpia_usb_init(void);
#endif

static int video_nr = -1;

#ifdef MODULE
Expand Down Expand Up @@ -4047,13 +4040,6 @@ static int __init cpia_init(void)
proc_cpia_create();
#endif

#ifdef CONFIG_VIDEO_CPIA_PP
cpia_pp_init();
#endif
#ifdef CONFIG_VIDEO_CPIA_USB
cpia_usb_init();
#endif

return 0;
}

Expand Down
8 changes: 7 additions & 1 deletion trunk/drivers/media/video/cpia_pp.c
Original file line number Diff line number Diff line change
Expand Up @@ -803,7 +803,7 @@ static struct parport_driver cpia_pp_driver = {
.detach = cpia_pp_detach,
};

int cpia_pp_init(void)
static int cpia_pp_init(void)
{
printk(KERN_INFO "%s v%d.%d.%d\n",ABOUT,
CPIA_PP_MAJ_VER,CPIA_PP_MIN_VER,CPIA_PP_PATCH_VER);
Expand Down Expand Up @@ -860,6 +860,8 @@ void cleanup_module(void)

static int __init cpia_pp_setup(char *str)
{
int err;

if (!strncmp(str, "parport", 7)) {
int n = simple_strtoul(str + 7, NULL, 10);
if (parport_ptr < PARPORT_MAX) {
Expand All @@ -873,6 +875,10 @@ static int __init cpia_pp_setup(char *str)
parport_nr[parport_ptr++] = PPCPIA_PARPORT_NONE;
}

err=cpia_pp_init();
if (err)
return err;

return 1;
}

Expand Down
6 changes: 0 additions & 6 deletions trunk/drivers/media/video/cpia_usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -474,12 +474,6 @@ static int cpia_usb_close(void *privdata)
return 0;
}

int cpia_usb_init(void)
{
/* return -ENODEV; */
return 0;
}

/* Probing and initializing */

static int cpia_probe(struct usb_interface *intf,
Expand Down

0 comments on commit c56f470

Please sign in to comment.