diff options
Diffstat (limited to 'drivers/pcmcia')
-rw-r--r-- | drivers/pcmcia/bfin_cf_pcmcia.c | 13 | ||||
-rw-r--r-- | drivers/pcmcia/db1xxx_ss.c | 13 | ||||
-rw-r--r-- | drivers/pcmcia/electra_cf.c | 12 | ||||
-rw-r--r-- | drivers/pcmcia/m8xx_pcmcia.c | 13 | ||||
-rw-r--r-- | drivers/pcmcia/pxa2xx_viper.c | 13 | ||||
-rw-r--r-- | drivers/pcmcia/xxs1500_ss.c | 13 |
6 files changed, 6 insertions, 71 deletions
diff --git a/drivers/pcmcia/bfin_cf_pcmcia.c b/drivers/pcmcia/bfin_cf_pcmcia.c index 49221395101e..ac1a2232eab9 100644 --- a/drivers/pcmcia/bfin_cf_pcmcia.c +++ b/drivers/pcmcia/bfin_cf_pcmcia.c | |||
@@ -310,18 +310,7 @@ static struct platform_driver bfin_cf_driver = { | |||
310 | .remove = __devexit_p(bfin_cf_remove), | 310 | .remove = __devexit_p(bfin_cf_remove), |
311 | }; | 311 | }; |
312 | 312 | ||
313 | static int __init bfin_cf_init(void) | 313 | module_platform_driver(bfin_cf_driver); |
314 | { | ||
315 | return platform_driver_register(&bfin_cf_driver); | ||
316 | } | ||
317 | |||
318 | static void __exit bfin_cf_exit(void) | ||
319 | { | ||
320 | platform_driver_unregister(&bfin_cf_driver); | ||
321 | } | ||
322 | |||
323 | module_init(bfin_cf_init); | ||
324 | module_exit(bfin_cf_exit); | ||
325 | 314 | ||
326 | MODULE_AUTHOR("Michael Hennerich <hennerich@blackfin.uclinux.org>"); | 315 | MODULE_AUTHOR("Michael Hennerich <hennerich@blackfin.uclinux.org>"); |
327 | MODULE_DESCRIPTION("BFIN CF/PCMCIA Driver"); | 316 | MODULE_DESCRIPTION("BFIN CF/PCMCIA Driver"); |
diff --git a/drivers/pcmcia/db1xxx_ss.c b/drivers/pcmcia/db1xxx_ss.c index deb348cf573e..a484b1fb3382 100644 --- a/drivers/pcmcia/db1xxx_ss.c +++ b/drivers/pcmcia/db1xxx_ss.c | |||
@@ -580,18 +580,7 @@ static struct platform_driver db1x_pcmcia_socket_driver = { | |||
580 | .remove = __devexit_p(db1x_pcmcia_socket_remove), | 580 | .remove = __devexit_p(db1x_pcmcia_socket_remove), |
581 | }; | 581 | }; |
582 | 582 | ||
583 | int __init db1x_pcmcia_socket_load(void) | 583 | module_platform_driver(db1x_pcmcia_socket_driver); |
584 | { | ||
585 | return platform_driver_register(&db1x_pcmcia_socket_driver); | ||
586 | } | ||
587 | |||
588 | void __exit db1x_pcmcia_socket_unload(void) | ||
589 | { | ||
590 | platform_driver_unregister(&db1x_pcmcia_socket_driver); | ||
591 | } | ||
592 | |||
593 | module_init(db1x_pcmcia_socket_load); | ||
594 | module_exit(db1x_pcmcia_socket_unload); | ||
595 | 584 | ||
596 | MODULE_LICENSE("GPL"); | 585 | MODULE_LICENSE("GPL"); |
597 | MODULE_DESCRIPTION("PCMCIA Socket Services for Alchemy Db/Pb1x00 boards"); | 586 | MODULE_DESCRIPTION("PCMCIA Socket Services for Alchemy Db/Pb1x00 boards"); |
diff --git a/drivers/pcmcia/electra_cf.c b/drivers/pcmcia/electra_cf.c index 06ad3e5e7d3d..7647d232e9e2 100644 --- a/drivers/pcmcia/electra_cf.c +++ b/drivers/pcmcia/electra_cf.c | |||
@@ -365,17 +365,7 @@ static struct platform_driver electra_cf_driver = { | |||
365 | .remove = electra_cf_remove, | 365 | .remove = electra_cf_remove, |
366 | }; | 366 | }; |
367 | 367 | ||
368 | static int __init electra_cf_init(void) | 368 | module_platform_driver(electra_cf_driver); |
369 | { | ||
370 | return platform_driver_register(&electra_cf_driver); | ||
371 | } | ||
372 | module_init(electra_cf_init); | ||
373 | |||
374 | static void __exit electra_cf_exit(void) | ||
375 | { | ||
376 | platform_driver_unregister(&electra_cf_driver); | ||
377 | } | ||
378 | module_exit(electra_cf_exit); | ||
379 | 369 | ||
380 | MODULE_LICENSE("GPL"); | 370 | MODULE_LICENSE("GPL"); |
381 | MODULE_AUTHOR ("Olof Johansson <olof@lixom.net>"); | 371 | MODULE_AUTHOR ("Olof Johansson <olof@lixom.net>"); |
diff --git a/drivers/pcmcia/m8xx_pcmcia.c b/drivers/pcmcia/m8xx_pcmcia.c index 271a590a5f3c..b120928cf3e9 100644 --- a/drivers/pcmcia/m8xx_pcmcia.c +++ b/drivers/pcmcia/m8xx_pcmcia.c | |||
@@ -1304,15 +1304,4 @@ static struct platform_driver m8xx_pcmcia_driver = { | |||
1304 | .remove = m8xx_remove, | 1304 | .remove = m8xx_remove, |
1305 | }; | 1305 | }; |
1306 | 1306 | ||
1307 | static int __init m8xx_init(void) | 1307 | module_platform_driver(m8xx_pcmcia_driver); |
1308 | { | ||
1309 | return platform_driver_register(&m8xx_pcmcia_driver); | ||
1310 | } | ||
1311 | |||
1312 | static void __exit m8xx_exit(void) | ||
1313 | { | ||
1314 | platform_driver_unregister(&m8xx_pcmcia_driver); | ||
1315 | } | ||
1316 | |||
1317 | module_init(m8xx_init); | ||
1318 | module_exit(m8xx_exit); | ||
diff --git a/drivers/pcmcia/pxa2xx_viper.c b/drivers/pcmcia/pxa2xx_viper.c index 1064b1c2869d..44f5c7fc9b6f 100644 --- a/drivers/pcmcia/pxa2xx_viper.c +++ b/drivers/pcmcia/pxa2xx_viper.c | |||
@@ -204,18 +204,7 @@ static struct platform_driver viper_pcmcia_driver = { | |||
204 | .id_table = viper_pcmcia_id_table, | 204 | .id_table = viper_pcmcia_id_table, |
205 | }; | 205 | }; |
206 | 206 | ||
207 | static int __init viper_pcmcia_init(void) | 207 | module_platform_driver(viper_pcmcia_driver); |
208 | { | ||
209 | return platform_driver_register(&viper_pcmcia_driver); | ||
210 | } | ||
211 | |||
212 | static void __exit viper_pcmcia_exit(void) | ||
213 | { | ||
214 | return platform_driver_unregister(&viper_pcmcia_driver); | ||
215 | } | ||
216 | |||
217 | module_init(viper_pcmcia_init); | ||
218 | module_exit(viper_pcmcia_exit); | ||
219 | 208 | ||
220 | MODULE_DEVICE_TABLE(platform, viper_pcmcia_id_table); | 209 | MODULE_DEVICE_TABLE(platform, viper_pcmcia_id_table); |
221 | MODULE_LICENSE("GPL"); | 210 | MODULE_LICENSE("GPL"); |
diff --git a/drivers/pcmcia/xxs1500_ss.c b/drivers/pcmcia/xxs1500_ss.c index 379f4218857d..1ceff698c654 100644 --- a/drivers/pcmcia/xxs1500_ss.c +++ b/drivers/pcmcia/xxs1500_ss.c | |||
@@ -321,18 +321,7 @@ static struct platform_driver xxs1500_pcmcia_socket_driver = { | |||
321 | .remove = __devexit_p(xxs1500_pcmcia_remove), | 321 | .remove = __devexit_p(xxs1500_pcmcia_remove), |
322 | }; | 322 | }; |
323 | 323 | ||
324 | int __init xxs1500_pcmcia_socket_load(void) | 324 | module_platform_driver(xxs1500_pcmcia_socket_driver); |
325 | { | ||
326 | return platform_driver_register(&xxs1500_pcmcia_socket_driver); | ||
327 | } | ||
328 | |||
329 | void __exit xxs1500_pcmcia_socket_unload(void) | ||
330 | { | ||
331 | platform_driver_unregister(&xxs1500_pcmcia_socket_driver); | ||
332 | } | ||
333 | |||
334 | module_init(xxs1500_pcmcia_socket_load); | ||
335 | module_exit(xxs1500_pcmcia_socket_unload); | ||
336 | 325 | ||
337 | MODULE_LICENSE("GPL"); | 326 | MODULE_LICENSE("GPL"); |
338 | MODULE_DESCRIPTION("PCMCIA Socket Services for MyCable XXS1500 systems"); | 327 | MODULE_DESCRIPTION("PCMCIA Socket Services for MyCable XXS1500 systems"); |