diff options
author | H Hartley Sweeten <hsweeten@visionengravers.com> | 2013-03-06 13:25:44 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-03-15 15:26:03 -0400 |
commit | 460604850a0cfcdb124fa627f56ca91529fb6c59 (patch) | |
tree | d4982699668d2a7119bc359267afb2e04a77b0b4 | |
parent | 6ed7ffddcf61f668114edb676417e5fb33773b59 (diff) |
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>
-rw-r--r-- | drivers/ata/pata_pcmcia.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/drivers/ata/pata_pcmcia.c b/drivers/ata/pata_pcmcia.c index 958238dda8fc..40254f4df584 100644 --- a/drivers/ata/pata_pcmcia.c +++ b/drivers/ata/pata_pcmcia.c | |||
@@ -387,21 +387,9 @@ static struct pcmcia_driver pcmcia_driver = { | |||
387 | .probe = pcmcia_init_one, | 387 | .probe = pcmcia_init_one, |
388 | .remove = pcmcia_remove_one, | 388 | .remove = pcmcia_remove_one, |
389 | }; | 389 | }; |
390 | 390 | module_pcmcia_driver(pcmcia_driver); | |
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 | } | ||
400 | 391 | ||
401 | MODULE_AUTHOR("Alan Cox"); | 392 | MODULE_AUTHOR("Alan Cox"); |
402 | MODULE_DESCRIPTION("low-level driver for PCMCIA ATA"); | 393 | MODULE_DESCRIPTION("low-level driver for PCMCIA ATA"); |
403 | MODULE_LICENSE("GPL"); | 394 | MODULE_LICENSE("GPL"); |
404 | MODULE_VERSION(DRV_VERSION); | 395 | MODULE_VERSION(DRV_VERSION); |
405 | |||
406 | module_init(pcmcia_init); | ||
407 | module_exit(pcmcia_exit); | ||