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/amcc/crypto4xx_core.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/amcc/crypto4xx_core.c')
-rw-r--r-- | drivers/crypto/amcc/crypto4xx_core.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/crypto/amcc/crypto4xx_core.c b/drivers/crypto/amcc/crypto4xx_core.c index 1d103f997dc2..13f8e1a14988 100644 --- a/drivers/crypto/amcc/crypto4xx_core.c +++ b/drivers/crypto/amcc/crypto4xx_core.c | |||
@@ -1292,18 +1292,7 @@ static struct platform_driver crypto4xx_driver = { | |||
1292 | .remove = crypto4xx_remove, | 1292 | .remove = crypto4xx_remove, |
1293 | }; | 1293 | }; |
1294 | 1294 | ||
1295 | static int __init crypto4xx_init(void) | 1295 | module_platform_driver(crypto4xx_driver); |
1296 | { | ||
1297 | return platform_driver_register(&crypto4xx_driver); | ||
1298 | } | ||
1299 | |||
1300 | static void __exit crypto4xx_exit(void) | ||
1301 | { | ||
1302 | platform_driver_unregister(&crypto4xx_driver); | ||
1303 | } | ||
1304 | |||
1305 | module_init(crypto4xx_init); | ||
1306 | module_exit(crypto4xx_exit); | ||
1307 | 1296 | ||
1308 | MODULE_LICENSE("GPL"); | 1297 | MODULE_LICENSE("GPL"); |
1309 | MODULE_AUTHOR("James Hsiao <jhsiao@amcc.com>"); | 1298 | MODULE_AUTHOR("James Hsiao <jhsiao@amcc.com>"); |