Commit f4330002 authored by Alexey Dobriyan's avatar Alexey Dobriyan Committed by Linus Torvalds

[PATCH] paride: rename pi_register() and pi_unregister()

We're about to change the semantics of pi_register()'s return value, so
rename it to something else first, so that any unconverted code reliaby
breaks.
Signed-off-by: default avatarAlexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 3bd0f694
...@@ -149,12 +149,12 @@ static struct pi_protocol aten = { ...@@ -149,12 +149,12 @@ static struct pi_protocol aten = {
static int __init aten_init(void) static int __init aten_init(void)
{ {
return pi_register(&aten)-1; return paride_register(&aten)-1;
} }
static void __exit aten_exit(void) static void __exit aten_exit(void)
{ {
pi_unregister( &aten ); paride_unregister( &aten );
} }
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
......
...@@ -464,12 +464,12 @@ static struct pi_protocol bpck = { ...@@ -464,12 +464,12 @@ static struct pi_protocol bpck = {
static int __init bpck_init(void) static int __init bpck_init(void)
{ {
return pi_register(&bpck)-1; return paride_register(&bpck)-1;
} }
static void __exit bpck_exit(void) static void __exit bpck_exit(void)
{ {
pi_unregister(&bpck); paride_unregister(&bpck);
} }
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
......
...@@ -265,12 +265,12 @@ static int __init bpck6_init(void) ...@@ -265,12 +265,12 @@ static int __init bpck6_init(void)
printk(KERN_INFO "bpck6: Copyright 2001 by Micro Solutions, Inc., DeKalb IL. USA\n"); printk(KERN_INFO "bpck6: Copyright 2001 by Micro Solutions, Inc., DeKalb IL. USA\n");
if(verbose) if(verbose)
printk(KERN_DEBUG "bpck6: verbose debug enabled.\n"); printk(KERN_DEBUG "bpck6: verbose debug enabled.\n");
return pi_register(&bpck6) - 1; return paride_register(&bpck6) - 1;
} }
static void __exit bpck6_exit(void) static void __exit bpck6_exit(void)
{ {
pi_unregister(&bpck6); paride_unregister(&bpck6);
} }
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
......
...@@ -205,12 +205,12 @@ static struct pi_protocol comm = { ...@@ -205,12 +205,12 @@ static struct pi_protocol comm = {
static int __init comm_init(void) static int __init comm_init(void)
{ {
return pi_register(&comm)-1; return paride_register(&comm)-1;
} }
static void __exit comm_exit(void) static void __exit comm_exit(void)
{ {
pi_unregister(&comm); paride_unregister(&comm);
} }
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
......
...@@ -220,12 +220,12 @@ static struct pi_protocol dstr = { ...@@ -220,12 +220,12 @@ static struct pi_protocol dstr = {
static int __init dstr_init(void) static int __init dstr_init(void)
{ {
return pi_register(&dstr)-1; return paride_register(&dstr)-1;
} }
static void __exit dstr_exit(void) static void __exit dstr_exit(void)
{ {
pi_unregister(&dstr); paride_unregister(&dstr);
} }
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
......
...@@ -327,12 +327,12 @@ static int __init epat_init(void) ...@@ -327,12 +327,12 @@ static int __init epat_init(void)
#ifdef CONFIG_PARIDE_EPATC8 #ifdef CONFIG_PARIDE_EPATC8
epatc8 = 1; epatc8 = 1;
#endif #endif
return pi_register(&epat)-1; return paride_register(&epat)-1;
} }
static void __exit epat_exit(void) static void __exit epat_exit(void)
{ {
pi_unregister(&epat); paride_unregister(&epat);
} }
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
......
...@@ -303,12 +303,12 @@ static struct pi_protocol epia = { ...@@ -303,12 +303,12 @@ static struct pi_protocol epia = {
static int __init epia_init(void) static int __init epia_init(void)
{ {
return pi_register(&epia)-1; return paride_register(&epia)-1;
} }
static void __exit epia_exit(void) static void __exit epia_exit(void)
{ {
pi_unregister(&epia); paride_unregister(&epia);
} }
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
......
...@@ -138,12 +138,12 @@ static struct pi_protocol fit2 = { ...@@ -138,12 +138,12 @@ static struct pi_protocol fit2 = {
static int __init fit2_init(void) static int __init fit2_init(void)
{ {
return pi_register(&fit2)-1; return paride_register(&fit2)-1;
} }
static void __exit fit2_exit(void) static void __exit fit2_exit(void)
{ {
pi_unregister(&fit2); paride_unregister(&fit2);
} }
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
......
...@@ -198,12 +198,12 @@ static struct pi_protocol fit3 = { ...@@ -198,12 +198,12 @@ static struct pi_protocol fit3 = {
static int __init fit3_init(void) static int __init fit3_init(void)
{ {
return pi_register(&fit3)-1; return paride_register(&fit3)-1;
} }
static void __exit fit3_exit(void) static void __exit fit3_exit(void)
{ {
pi_unregister(&fit3); paride_unregister(&fit3);
} }
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
......
...@@ -263,12 +263,12 @@ static struct pi_protocol friq = { ...@@ -263,12 +263,12 @@ static struct pi_protocol friq = {
static int __init friq_init(void) static int __init friq_init(void)
{ {
return pi_register(&friq)-1; return paride_register(&friq)-1;
} }
static void __exit friq_exit(void) static void __exit friq_exit(void)
{ {
pi_unregister(&friq); paride_unregister(&friq);
} }
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
......
...@@ -300,12 +300,12 @@ static struct pi_protocol frpw = { ...@@ -300,12 +300,12 @@ static struct pi_protocol frpw = {
static int __init frpw_init(void) static int __init frpw_init(void)
{ {
return pi_register(&frpw)-1; return paride_register(&frpw)-1;
} }
static void __exit frpw_exit(void) static void __exit frpw_exit(void)
{ {
pi_unregister(&frpw); paride_unregister(&frpw);
} }
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
......
...@@ -283,13 +283,13 @@ static struct pi_protocol k971 = { ...@@ -283,13 +283,13 @@ static struct pi_protocol k971 = {
static int __init kbic_init(void) static int __init kbic_init(void)
{ {
return (pi_register(&k951)||pi_register(&k971))-1; return (paride_register(&k951)||paride_register(&k971))-1;
} }
static void __exit kbic_exit(void) static void __exit kbic_exit(void)
{ {
pi_unregister(&k951); paride_unregister(&k951);
pi_unregister(&k971); paride_unregister(&k971);
} }
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
......
...@@ -115,12 +115,12 @@ static struct pi_protocol ktti = { ...@@ -115,12 +115,12 @@ static struct pi_protocol ktti = {
static int __init ktti_init(void) static int __init ktti_init(void)
{ {
return pi_register(&ktti)-1; return paride_register(&ktti)-1;
} }
static void __exit ktti_exit(void) static void __exit ktti_exit(void)
{ {
pi_unregister(&ktti); paride_unregister(&ktti);
} }
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
......
...@@ -140,12 +140,12 @@ static struct pi_protocol on20 = { ...@@ -140,12 +140,12 @@ static struct pi_protocol on20 = {
static int __init on20_init(void) static int __init on20_init(void)
{ {
return pi_register(&on20)-1; return paride_register(&on20)-1;
} }
static void __exit on20_exit(void) static void __exit on20_exit(void)
{ {
pi_unregister(&on20); paride_unregister(&on20);
} }
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
......
...@@ -306,12 +306,12 @@ static struct pi_protocol on26 = { ...@@ -306,12 +306,12 @@ static struct pi_protocol on26 = {
static int __init on26_init(void) static int __init on26_init(void)
{ {
return pi_register(&on26)-1; return paride_register(&on26)-1;
} }
static void __exit on26_exit(void) static void __exit on26_exit(void)
{ {
pi_unregister(&on26); paride_unregister(&on26);
} }
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
......
...@@ -229,7 +229,7 @@ static int pi_test_proto(PIA * pi, char *scratch, int verbose) ...@@ -229,7 +229,7 @@ static int pi_test_proto(PIA * pi, char *scratch, int verbose)
return res; return res;
} }
int pi_register(PIP * pr) int paride_register(PIP * pr)
{ {
int k; int k;
...@@ -252,9 +252,9 @@ int pi_register(PIP * pr) ...@@ -252,9 +252,9 @@ int pi_register(PIP * pr)
return 1; return 1;
} }
EXPORT_SYMBOL(pi_register); EXPORT_SYMBOL(paride_register);
void pi_unregister(PIP * pr) void paride_unregister(PIP * pr)
{ {
if (!pr) if (!pr)
return; return;
...@@ -265,7 +265,7 @@ void pi_unregister(PIP * pr) ...@@ -265,7 +265,7 @@ void pi_unregister(PIP * pr)
protocols[pr->index] = NULL; protocols[pr->index] = NULL;
} }
EXPORT_SYMBOL(pi_unregister); EXPORT_SYMBOL(paride_unregister);
static int pi_register_parport(PIA * pi, int verbose) static int pi_register_parport(PIA * pi, int verbose)
{ {
......
...@@ -163,8 +163,8 @@ struct pi_protocol { ...@@ -163,8 +163,8 @@ struct pi_protocol {
typedef struct pi_protocol PIP; typedef struct pi_protocol PIP;
extern int pi_register( PIP * ); extern int paride_register( PIP * );
extern void pi_unregister ( PIP * ); extern void paride_unregister ( PIP * );
#endif /* __DRIVERS_PARIDE_H__ */ #endif /* __DRIVERS_PARIDE_H__ */
/* end of paride.h */ /* end of paride.h */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment