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/talitos.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/talitos.c')
-rw-r--r-- | drivers/crypto/talitos.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/drivers/crypto/talitos.c b/drivers/crypto/talitos.c index 92c0ca75400d..230509e9602b 100644 --- a/drivers/crypto/talitos.c +++ b/drivers/crypto/talitos.c | |||
@@ -2894,17 +2894,7 @@ static struct platform_driver talitos_driver = { | |||
2894 | .remove = talitos_remove, | 2894 | .remove = talitos_remove, |
2895 | }; | 2895 | }; |
2896 | 2896 | ||
2897 | static int __init talitos_init(void) | 2897 | module_platform_driver(talitos_driver); |
2898 | { | ||
2899 | return platform_driver_register(&talitos_driver); | ||
2900 | } | ||
2901 | module_init(talitos_init); | ||
2902 | |||
2903 | static void __exit talitos_exit(void) | ||
2904 | { | ||
2905 | platform_driver_unregister(&talitos_driver); | ||
2906 | } | ||
2907 | module_exit(talitos_exit); | ||
2908 | 2898 | ||
2909 | MODULE_LICENSE("GPL"); | 2899 | MODULE_LICENSE("GPL"); |
2910 | MODULE_AUTHOR("Kim Phillips <kim.phillips@freescale.com>"); | 2900 | MODULE_AUTHOR("Kim Phillips <kim.phillips@freescale.com>"); |