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/caam | |
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/caam')
-rw-r--r-- | drivers/crypto/caam/ctrl.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/crypto/caam/ctrl.c b/drivers/crypto/caam/ctrl.c index 73988bb7322a..048bb2343231 100644 --- a/drivers/crypto/caam/ctrl.c +++ b/drivers/crypto/caam/ctrl.c | |||
@@ -253,18 +253,7 @@ static struct platform_driver caam_driver = { | |||
253 | .remove = __devexit_p(caam_remove), | 253 | .remove = __devexit_p(caam_remove), |
254 | }; | 254 | }; |
255 | 255 | ||
256 | static int __init caam_base_init(void) | 256 | module_platform_driver(caam_driver); |
257 | { | ||
258 | return platform_driver_register(&caam_driver); | ||
259 | } | ||
260 | |||
261 | static void __exit caam_base_exit(void) | ||
262 | { | ||
263 | return platform_driver_unregister(&caam_driver); | ||
264 | } | ||
265 | |||
266 | module_init(caam_base_init); | ||
267 | module_exit(caam_base_exit); | ||
268 | 257 | ||
269 | MODULE_LICENSE("GPL"); | 258 | MODULE_LICENSE("GPL"); |
270 | MODULE_DESCRIPTION("FSL CAAM request backend"); | 259 | MODULE_DESCRIPTION("FSL CAAM request backend"); |