aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/crypto
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@linaro.org>2013-03-04 04:39:42 -0500
committerHerbert Xu <herbert@gondor.apana.org.au>2013-03-10 06:16:35 -0400
commit94e51df9d60c818a7974f545fd32f6690a9605d9 (patch)
tree56289bb5dfc3fd884c4a370c11a473d3e5ee58d9 /drivers/crypto
parentbbbaa37428abac025fe11b83933473888ddf6fc1 (diff)
crypto: omap-aes - Use module_platform_driver macro
module_platform_driver() makes the code simpler by eliminating boilerplate code. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto')
-rw-r--r--drivers/crypto/omap-aes.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/crypto/omap-aes.c b/drivers/crypto/omap-aes.c
index 1e5a17adefe4..ee15b0f7849a 100644
--- a/drivers/crypto/omap-aes.c
+++ b/drivers/crypto/omap-aes.c
@@ -1248,18 +1248,7 @@ static struct platform_driver omap_aes_driver = {
1248 }, 1248 },
1249}; 1249};
1250 1250
1251static int __init omap_aes_mod_init(void) 1251module_platform_driver(omap_aes_driver);
1252{
1253 return platform_driver_register(&omap_aes_driver);
1254}
1255
1256static void __exit omap_aes_mod_exit(void)
1257{
1258 platform_driver_unregister(&omap_aes_driver);
1259}
1260
1261module_init(omap_aes_mod_init);
1262module_exit(omap_aes_mod_exit);
1263 1252
1264MODULE_DESCRIPTION("OMAP AES hw acceleration support."); 1253MODULE_DESCRIPTION("OMAP AES hw acceleration support.");
1265MODULE_LICENSE("GPL v2"); 1254MODULE_LICENSE("GPL v2");