|
@@ -803,7 +803,7 @@ static struct parport_driver cpia_pp_driver = {
|
|
.detach = cpia_pp_detach,
|
|
.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,
|
|
printk(KERN_INFO "%s v%d.%d.%d\n",ABOUT,
|
|
CPIA_PP_MAJ_VER,CPIA_PP_MIN_VER,CPIA_PP_PATCH_VER);
|
|
CPIA_PP_MAJ_VER,CPIA_PP_MIN_VER,CPIA_PP_PATCH_VER);
|
|
@@ -860,6 +860,8 @@ void cleanup_module(void)
|
|
|
|
|
|
static int __init cpia_pp_setup(char *str)
|
|
static int __init cpia_pp_setup(char *str)
|
|
{
|
|
{
|
|
|
|
+ int err;
|
|
|
|
+
|
|
if (!strncmp(str, "parport", 7)) {
|
|
if (!strncmp(str, "parport", 7)) {
|
|
int n = simple_strtoul(str + 7, NULL, 10);
|
|
int n = simple_strtoul(str + 7, NULL, 10);
|
|
if (parport_ptr < PARPORT_MAX) {
|
|
if (parport_ptr < PARPORT_MAX) {
|
|
@@ -873,6 +875,10 @@ static int __init cpia_pp_setup(char *str)
|
|
parport_nr[parport_ptr++] = PPCPIA_PARPORT_NONE;
|
|
parport_nr[parport_ptr++] = PPCPIA_PARPORT_NONE;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ err=cpia_pp_init();
|
|
|
|
+ if (err)
|
|
|
|
+ return err;
|
|
|
|
+
|
|
return 1;
|
|
return 1;
|
|
}
|
|
}
|
|
|
|
|