aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@linaro.org>2012-08-27 06:15:31 -0400
committerHerbert Xu <herbert@gondor.apana.org.au>2012-09-06 16:17:03 -0400
commit49d30d3d5fd133a6243acf76c98242a68408a31a (patch)
tree1cd8aa78dc2d297f1475900d75049bd5c82ccb51
parent21a5b95f568d51d0c65c6a84f808e4e56a939f9b (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.c15
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
588static int __init 588module_pci_driver(geode_aes_driver);
589geode_aes_init(void)
590{
591 return pci_register_driver(&geode_aes_driver);
592}
593
594static void __exit
595geode_aes_exit(void)
596{
597 pci_unregister_driver(&geode_aes_driver);
598}
599 589
600MODULE_AUTHOR("Advanced Micro Devices, Inc."); 590MODULE_AUTHOR("Advanced Micro Devices, Inc.");
601MODULE_DESCRIPTION("Geode LX Hardware AES driver"); 591MODULE_DESCRIPTION("Geode LX Hardware AES driver");
602MODULE_LICENSE("GPL"); 592MODULE_LICENSE("GPL");
603
604module_init(geode_aes_init);
605module_exit(geode_aes_exit);