Skip to content

Commit

Permalink
crypto: geode-aes - Use module_pci_driver
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Sachin Kamat authored and Herbert Xu committed Sep 6, 2012
1 parent 21a5b95 commit 49d30d3
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions drivers/crypto/geode-aes.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

0 comments on commit 49d30d3

Please sign in to comment.