Skip to content

Commit f433000

Browse files
Alexey DobriyanLinus Torvalds
authored andcommitted
[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: Alexey Dobriyan <adobriyan@gmail.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
1 parent 3bd0f69 commit f433000

17 files changed

Lines changed: 37 additions & 37 deletions

File tree

‎drivers/block/paride/aten.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,12 +149,12 @@ static struct pi_protocol aten = {
149149

150150
static int __init aten_init(void)
151151
{
152-
return pi_register(&aten)-1;
152+
return paride_register(&aten)-1;
153153
}
154154

155155
static void __exit aten_exit(void)
156156
{
157-
pi_unregister( &aten );
157+
paride_unregister( &aten );
158158
}
159159

160160
MODULE_LICENSE("GPL");

‎drivers/block/paride/bpck.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -464,12 +464,12 @@ static struct pi_protocol bpck = {
464464

465465
static int __init bpck_init(void)
466466
{
467-
return pi_register(&bpck)-1;
467+
return paride_register(&bpck)-1;
468468
}
469469

470470
static void __exit bpck_exit(void)
471471
{
472-
pi_unregister(&bpck);
472+
paride_unregister(&bpck);
473473
}
474474

475475
MODULE_LICENSE("GPL");

‎drivers/block/paride/bpck6.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,12 +265,12 @@ static int __init bpck6_init(void)
265265
printk(KERN_INFO "bpck6: Copyright 2001 by Micro Solutions, Inc., DeKalb IL. USA\n");
266266
if(verbose)
267267
printk(KERN_DEBUG "bpck6: verbose debug enabled.\n");
268-
return pi_register(&bpck6) - 1;
268+
return paride_register(&bpck6) - 1;
269269
}
270270

271271
static void __exit bpck6_exit(void)
272272
{
273-
pi_unregister(&bpck6);
273+
paride_unregister(&bpck6);
274274
}
275275

276276
MODULE_LICENSE("GPL");

‎drivers/block/paride/comm.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,12 +205,12 @@ static struct pi_protocol comm = {
205205

206206
static int __init comm_init(void)
207207
{
208-
return pi_register(&comm)-1;
208+
return paride_register(&comm)-1;
209209
}
210210

211211
static void __exit comm_exit(void)
212212
{
213-
pi_unregister(&comm);
213+
paride_unregister(&comm);
214214
}
215215

216216
MODULE_LICENSE("GPL");

‎drivers/block/paride/dstr.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,12 +220,12 @@ static struct pi_protocol dstr = {
220220

221221
static int __init dstr_init(void)
222222
{
223-
return pi_register(&dstr)-1;
223+
return paride_register(&dstr)-1;
224224
}
225225

226226
static void __exit dstr_exit(void)
227227
{
228-
pi_unregister(&dstr);
228+
paride_unregister(&dstr);
229229
}
230230

231231
MODULE_LICENSE("GPL");

‎drivers/block/paride/epat.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -327,12 +327,12 @@ static int __init epat_init(void)
327327
#ifdef CONFIG_PARIDE_EPATC8
328328
epatc8 = 1;
329329
#endif
330-
return pi_register(&epat)-1;
330+
return paride_register(&epat)-1;
331331
}
332332

333333
static void __exit epat_exit(void)
334334
{
335-
pi_unregister(&epat);
335+
paride_unregister(&epat);
336336
}
337337

338338
MODULE_LICENSE("GPL");

‎drivers/block/paride/epia.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -303,12 +303,12 @@ static struct pi_protocol epia = {
303303

304304
static int __init epia_init(void)
305305
{
306-
return pi_register(&epia)-1;
306+
return paride_register(&epia)-1;
307307
}
308308

309309
static void __exit epia_exit(void)
310310
{
311-
pi_unregister(&epia);
311+
paride_unregister(&epia);
312312
}
313313

314314
MODULE_LICENSE("GPL");

‎drivers/block/paride/fit2.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,12 +138,12 @@ static struct pi_protocol fit2 = {
138138

139139
static int __init fit2_init(void)
140140
{
141-
return pi_register(&fit2)-1;
141+
return paride_register(&fit2)-1;
142142
}
143143

144144
static void __exit fit2_exit(void)
145145
{
146-
pi_unregister(&fit2);
146+
paride_unregister(&fit2);
147147
}
148148

149149
MODULE_LICENSE("GPL");

‎drivers/block/paride/fit3.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,12 +198,12 @@ static struct pi_protocol fit3 = {
198198

199199
static int __init fit3_init(void)
200200
{
201-
return pi_register(&fit3)-1;
201+
return paride_register(&fit3)-1;
202202
}
203203

204204
static void __exit fit3_exit(void)
205205
{
206-
pi_unregister(&fit3);
206+
paride_unregister(&fit3);
207207
}
208208

209209
MODULE_LICENSE("GPL");

‎drivers/block/paride/friq.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -263,12 +263,12 @@ static struct pi_protocol friq = {
263263

264264
static int __init friq_init(void)
265265
{
266-
return pi_register(&friq)-1;
266+
return paride_register(&friq)-1;
267267
}
268268

269269
static void __exit friq_exit(void)
270270
{
271-
pi_unregister(&friq);
271+
paride_unregister(&friq);
272272
}
273273

274274
MODULE_LICENSE("GPL");

0 commit comments

Comments
 (0)