Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drivers/ata: use module_pcmcia_driver() in pcmcia drivers

Use the new module_pcmcia_driver() macro to remove the boilerplate
module init/exit code in the pcmcia drivers.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

H Hartley Sweeten and committed by
Greg Kroah-Hartman
46060485 6ed7ffdd

+1 -13
+1 -13
drivers/ata/pata_pcmcia.c
··· 387 387 .probe = pcmcia_init_one, 388 388 .remove = pcmcia_remove_one, 389 389 }; 390 - 391 - static int __init pcmcia_init(void) 392 - { 393 - return pcmcia_register_driver(&pcmcia_driver); 394 - } 395 - 396 - static void __exit pcmcia_exit(void) 397 - { 398 - pcmcia_unregister_driver(&pcmcia_driver); 399 - } 390 + module_pcmcia_driver(pcmcia_driver); 400 391 401 392 MODULE_AUTHOR("Alan Cox"); 402 393 MODULE_DESCRIPTION("low-level driver for PCMCIA ATA"); 403 394 MODULE_LICENSE("GPL"); 404 395 MODULE_VERSION(DRV_VERSION); 405 - 406 - module_init(pcmcia_init); 407 - module_exit(pcmcia_exit);