diff options
author | Axel Lin <axel.lin@gmail.com> | 2011-11-26 08:26:19 -0500 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2011-11-30 03:12:48 -0500 |
commit | 741e8c2d8177eca656bc015ef83ab84d817edf8c (patch) | |
tree | 95608ec1869898ff9707a32b265234dbb1ed1105 /drivers/crypto/s5p-sss.c | |
parent | b21cb324f141d16833137ef0355f686efb9bd84f (diff) |
crypto: convert drivers/crypto/* to use module_platform_driver()
This patch converts the drivers in drivers/crypto/* to use the
module_platform_driver() macro which makes the code smaller and a bit
simpler.
Cc: James Hsiao <jhsiao@amcc.com>
Cc: Sebastian Andrzej Siewior <sebastian@breakpoint.cc>
Cc: Kim Phillips <kim.phillips@freescale.com>
Cc: "David S. Miller" <davem@davemloft.net>
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked-by: Vladimir Zapolskiy <vzapolskiy@gmail.com>
Acked-by: Jamie Iles <jamie@jamieiles.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/s5p-sss.c')
-rw-r--r-- | drivers/crypto/s5p-sss.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/crypto/s5p-sss.c b/drivers/crypto/s5p-sss.c index 8115417a1c93..3376bca200fc 100644 --- a/drivers/crypto/s5p-sss.c +++ b/drivers/crypto/s5p-sss.c | |||
@@ -683,18 +683,7 @@ static struct platform_driver s5p_aes_crypto = { | |||
683 | }, | 683 | }, |
684 | }; | 684 | }; |
685 | 685 | ||
686 | static int __init s5p_aes_mod_init(void) | 686 | module_platform_driver(s5p_aes_crypto); |
687 | { | ||
688 | return platform_driver_register(&s5p_aes_crypto); | ||
689 | } | ||
690 | |||
691 | static void __exit s5p_aes_mod_exit(void) | ||
692 | { | ||
693 | platform_driver_unregister(&s5p_aes_crypto); | ||
694 | } | ||
695 | |||
696 | module_init(s5p_aes_mod_init); | ||
697 | module_exit(s5p_aes_mod_exit); | ||
698 | 687 | ||
699 | MODULE_DESCRIPTION("S5PV210 AES hw acceleration support."); | 688 | MODULE_DESCRIPTION("S5PV210 AES hw acceleration support."); |
700 | MODULE_LICENSE("GPL v2"); | 689 | MODULE_LICENSE("GPL v2"); |