Skip to content

Commit

Permalink
[PATCH] paride: rename pi_register() and pi_unregister()
Browse files Browse the repository at this point in the history
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: Alexey Dobriyan <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Alexey Dobriyan authored and Linus Torvalds committed Dec 7, 2006
1 parent 3bd0f69 commit f433000
Show file tree
Hide file tree
Showing 17 changed files with 37 additions and 37 deletions.
4 changes: 2 additions & 2 deletions drivers/block/paride/aten.c
Original file line number Diff line number Diff line change
Expand Up @@ -149,12 +149,12 @@ static struct pi_protocol aten = {

static int __init aten_init(void)
{
return pi_register(&aten)-1;
return paride_register(&aten)-1;
}

static void __exit aten_exit(void)
{
pi_unregister( &aten );
paride_unregister( &aten );
}

MODULE_LICENSE("GPL");
Expand Down
4 changes: 2 additions & 2 deletions drivers/block/paride/bpck.c
Original file line number Diff line number Diff line change
Expand Up @@ -464,12 +464,12 @@ static struct pi_protocol bpck = {

static int __init bpck_init(void)
{
return pi_register(&bpck)-1;
return paride_register(&bpck)-1;
}

static void __exit bpck_exit(void)
{
pi_unregister(&bpck);
paride_unregister(&bpck);
}

MODULE_LICENSE("GPL");
Expand Down
4 changes: 2 additions & 2 deletions drivers/block/paride/bpck6.c
Original file line number Diff line number Diff line change
Expand Up @@ -265,12 +265,12 @@ static int __init bpck6_init(void)
printk(KERN_INFO "bpck6: Copyright 2001 by Micro Solutions, Inc., DeKalb IL. USA\n");
if(verbose)
printk(KERN_DEBUG "bpck6: verbose debug enabled.\n");
return pi_register(&bpck6) - 1;
return paride_register(&bpck6) - 1;
}

static void __exit bpck6_exit(void)
{
pi_unregister(&bpck6);
paride_unregister(&bpck6);
}

MODULE_LICENSE("GPL");
Expand Down
4 changes: 2 additions & 2 deletions drivers/block/paride/comm.c
Original file line number Diff line number Diff line change
Expand Up @@ -205,12 +205,12 @@ static struct pi_protocol comm = {

static int __init comm_init(void)
{
return pi_register(&comm)-1;
return paride_register(&comm)-1;
}

static void __exit comm_exit(void)
{
pi_unregister(&comm);
paride_unregister(&comm);
}

MODULE_LICENSE("GPL");
Expand Down
4 changes: 2 additions & 2 deletions drivers/block/paride/dstr.c
Original file line number Diff line number Diff line change
Expand Up @@ -220,12 +220,12 @@ static struct pi_protocol dstr = {

static int __init dstr_init(void)
{
return pi_register(&dstr)-1;
return paride_register(&dstr)-1;
}

static void __exit dstr_exit(void)
{
pi_unregister(&dstr);
paride_unregister(&dstr);
}

MODULE_LICENSE("GPL");
Expand Down
4 changes: 2 additions & 2 deletions drivers/block/paride/epat.c
Original file line number Diff line number Diff line change
Expand Up @@ -327,12 +327,12 @@ static int __init epat_init(void)
#ifdef CONFIG_PARIDE_EPATC8
epatc8 = 1;
#endif
return pi_register(&epat)-1;
return paride_register(&epat)-1;
}

static void __exit epat_exit(void)
{
pi_unregister(&epat);
paride_unregister(&epat);
}

MODULE_LICENSE("GPL");
Expand Down
4 changes: 2 additions & 2 deletions drivers/block/paride/epia.c
Original file line number Diff line number Diff line change
Expand Up @@ -303,12 +303,12 @@ static struct pi_protocol epia = {

static int __init epia_init(void)
{
return pi_register(&epia)-1;
return paride_register(&epia)-1;
}

static void __exit epia_exit(void)
{
pi_unregister(&epia);
paride_unregister(&epia);
}

MODULE_LICENSE("GPL");
Expand Down
4 changes: 2 additions & 2 deletions drivers/block/paride/fit2.c
Original file line number Diff line number Diff line change
Expand Up @@ -138,12 +138,12 @@ static struct pi_protocol fit2 = {

static int __init fit2_init(void)
{
return pi_register(&fit2)-1;
return paride_register(&fit2)-1;
}

static void __exit fit2_exit(void)
{
pi_unregister(&fit2);
paride_unregister(&fit2);
}

MODULE_LICENSE("GPL");
Expand Down
4 changes: 2 additions & 2 deletions drivers/block/paride/fit3.c
Original file line number Diff line number Diff line change
Expand Up @@ -198,12 +198,12 @@ static struct pi_protocol fit3 = {

static int __init fit3_init(void)
{
return pi_register(&fit3)-1;
return paride_register(&fit3)-1;
}

static void __exit fit3_exit(void)
{
pi_unregister(&fit3);
paride_unregister(&fit3);
}

MODULE_LICENSE("GPL");
Expand Down
4 changes: 2 additions & 2 deletions drivers/block/paride/friq.c
Original file line number Diff line number Diff line change
Expand Up @@ -263,12 +263,12 @@ static struct pi_protocol friq = {

static int __init friq_init(void)
{
return pi_register(&friq)-1;
return paride_register(&friq)-1;
}

static void __exit friq_exit(void)
{
pi_unregister(&friq);
paride_unregister(&friq);
}

MODULE_LICENSE("GPL");
Expand Down
4 changes: 2 additions & 2 deletions drivers/block/paride/frpw.c
Original file line number Diff line number Diff line change
Expand Up @@ -300,12 +300,12 @@ static struct pi_protocol frpw = {

static int __init frpw_init(void)
{
return pi_register(&frpw)-1;
return paride_register(&frpw)-1;
}

static void __exit frpw_exit(void)
{
pi_unregister(&frpw);
paride_unregister(&frpw);
}

MODULE_LICENSE("GPL");
Expand Down
6 changes: 3 additions & 3 deletions drivers/block/paride/kbic.c
Original file line number Diff line number Diff line change
Expand Up @@ -283,13 +283,13 @@ static struct pi_protocol k971 = {

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)
{
pi_unregister(&k951);
pi_unregister(&k971);
paride_unregister(&k951);
paride_unregister(&k971);
}

MODULE_LICENSE("GPL");
Expand Down
4 changes: 2 additions & 2 deletions drivers/block/paride/ktti.c
Original file line number Diff line number Diff line change
Expand Up @@ -115,12 +115,12 @@ static struct pi_protocol ktti = {

static int __init ktti_init(void)
{
return pi_register(&ktti)-1;
return paride_register(&ktti)-1;
}

static void __exit ktti_exit(void)
{
pi_unregister(&ktti);
paride_unregister(&ktti);
}

MODULE_LICENSE("GPL");
Expand Down
4 changes: 2 additions & 2 deletions drivers/block/paride/on20.c
Original file line number Diff line number Diff line change
Expand Up @@ -140,12 +140,12 @@ static struct pi_protocol on20 = {

static int __init on20_init(void)
{
return pi_register(&on20)-1;
return paride_register(&on20)-1;
}

static void __exit on20_exit(void)
{
pi_unregister(&on20);
paride_unregister(&on20);
}

MODULE_LICENSE("GPL");
Expand Down
4 changes: 2 additions & 2 deletions drivers/block/paride/on26.c
Original file line number Diff line number Diff line change
Expand Up @@ -306,12 +306,12 @@ static struct pi_protocol on26 = {

static int __init on26_init(void)
{
return pi_register(&on26)-1;
return paride_register(&on26)-1;
}

static void __exit on26_exit(void)
{
pi_unregister(&on26);
paride_unregister(&on26);
}

MODULE_LICENSE("GPL");
Expand Down
8 changes: 4 additions & 4 deletions drivers/block/paride/paride.c
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ static int pi_test_proto(PIA * pi, char *scratch, int verbose)
return res;
}

int pi_register(PIP * pr)
int paride_register(PIP * pr)
{
int k;

Expand All @@ -252,9 +252,9 @@ int pi_register(PIP * pr)
return 1;
}

EXPORT_SYMBOL(pi_register);
EXPORT_SYMBOL(paride_register);

void pi_unregister(PIP * pr)
void paride_unregister(PIP * pr)
{
if (!pr)
return;
Expand All @@ -265,7 +265,7 @@ void pi_unregister(PIP * pr)
protocols[pr->index] = NULL;
}

EXPORT_SYMBOL(pi_unregister);
EXPORT_SYMBOL(paride_unregister);

static int pi_register_parport(PIA * pi, int verbose)
{
Expand Down
4 changes: 2 additions & 2 deletions drivers/block/paride/paride.h
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,8 @@ struct pi_protocol {

typedef struct pi_protocol PIP;

extern int pi_register( PIP * );
extern void pi_unregister ( PIP * );
extern int paride_register( PIP * );
extern void paride_unregister ( PIP * );

#endif /* __DRIVERS_PARIDE_H__ */
/* end of paride.h */

0 comments on commit f433000

Please sign in to comment.