diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2012-08-27 15:45:31 +0530 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2012-09-07 04:17:03 +0800 |
commit | 49d30d3d5fd133a6243acf76c98242a68408a31a (patch) | |
tree | 1cd8aa78dc2d297f1475900d75049bd5c82ccb51 /drivers/crypto/geode-aes.c | |
parent | 21a5b95f568d51d0c65c6a84f808e4e56a939f9b (diff) | |
download | linux-3.10-49d30d3d5fd133a6243acf76c98242a68408a31a.tar.gz linux-3.10-49d30d3d5fd133a6243acf76c98242a68408a31a.tar.bz2 linux-3.10-49d30d3d5fd133a6243acf76c98242a68408a31a.zip |
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>
Diffstat (limited to 'drivers/crypto/geode-aes.c')
-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 933fb4b4a4c..51f196d77f2 100644 --- a/drivers/crypto/geode-aes.c +++ b/drivers/crypto/geode-aes.c @@ -585,21 +585,8 @@ static struct pci_driver geode_aes_driver = { .remove = __devexit_p(geode_aes_remove) }; -static int __init -geode_aes_init(void) -{ - return pci_register_driver(&geode_aes_driver); -} - -static void __exit -geode_aes_exit(void) -{ - pci_unregister_driver(&geode_aes_driver); -} +module_pci_driver(geode_aes_driver); MODULE_AUTHOR("Advanced Micro Devices, Inc."); MODULE_DESCRIPTION("Geode LX Hardware AES driver"); MODULE_LICENSE("GPL"); - -module_init(geode_aes_init); -module_exit(geode_aes_exit); |