diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2012-08-27 06:15:31 -0400 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2012-09-06 16:17:03 -0400 |
commit | 49d30d3d5fd133a6243acf76c98242a68408a31a (patch) | |
tree | 1cd8aa78dc2d297f1475900d75049bd5c82ccb51 | |
parent | 21a5b95f568d51d0c65c6a84f808e4e56a939f9b (diff) |
crypto: geode-aes - Use module_pci_driver
module_pci_driver makes the code simpler by eliminating
module_init and module_exit calls.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
-rw-r--r-- | drivers/crypto/geode-aes.c | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/drivers/crypto/geode-aes.c b/drivers/crypto/geode-aes.c index 933fb4b4a4c7..51f196d77f21 100644 --- a/drivers/crypto/geode-aes.c +++ b/drivers/crypto/geode-aes.c | |||
@@ -585,21 +585,8 @@ static struct pci_driver geode_aes_driver = { | |||
585 | .remove = __devexit_p(geode_aes_remove) | 585 | .remove = __devexit_p(geode_aes_remove) |
586 | }; | 586 | }; |
587 | 587 | ||
588 | static int __init | 588 | module_pci_driver(geode_aes_driver); |
589 | geode_aes_init(void) | ||
590 | { | ||
591 | return pci_register_driver(&geode_aes_driver); | ||
592 | } | ||
593 | |||
594 | static void __exit | ||
595 | geode_aes_exit(void) | ||
596 | { | ||
597 | pci_unregister_driver(&geode_aes_driver); | ||
598 | } | ||
599 | 589 | ||
600 | MODULE_AUTHOR("Advanced Micro Devices, Inc."); | 590 | MODULE_AUTHOR("Advanced Micro Devices, Inc."); |
601 | MODULE_DESCRIPTION("Geode LX Hardware AES driver"); | 591 | MODULE_DESCRIPTION("Geode LX Hardware AES driver"); |
602 | MODULE_LICENSE("GPL"); | 592 | MODULE_LICENSE("GPL"); |
603 | |||
604 | module_init(geode_aes_init); | ||
605 | module_exit(geode_aes_exit); | ||