aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/crypto/picoxcell_crypto.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@gmail.com>2011-11-26 08:26:19 -0500
committerHerbert Xu <herbert@gondor.apana.org.au>2011-11-30 03:12:48 -0500
commit741e8c2d8177eca656bc015ef83ab84d817edf8c (patch)
tree95608ec1869898ff9707a32b265234dbb1ed1105 /drivers/crypto/picoxcell_crypto.c
parentb21cb324f141d16833137ef0355f686efb9bd84f (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/picoxcell_crypto.c')
-rw-r--r--drivers/crypto/picoxcell_crypto.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/drivers/crypto/picoxcell_crypto.c b/drivers/crypto/picoxcell_crypto.c
index a2b553eabbdb..9b1571c2a5a4 100644
--- a/drivers/crypto/picoxcell_crypto.c
+++ b/drivers/crypto/picoxcell_crypto.c
@@ -1854,17 +1854,7 @@ static struct platform_driver spacc_driver = {
1854 .id_table = spacc_id_table, 1854 .id_table = spacc_id_table,
1855}; 1855};
1856 1856
1857static int __init spacc_init(void) 1857module_platform_driver(spacc_driver);
1858{
1859 return platform_driver_register(&spacc_driver);
1860}
1861module_init(spacc_init);
1862
1863static void __exit spacc_exit(void)
1864{
1865 platform_driver_unregister(&spacc_driver);
1866}
1867module_exit(spacc_exit);
1868 1858
1869MODULE_LICENSE("GPL"); 1859MODULE_LICENSE("GPL");
1870MODULE_AUTHOR("Jamie Iles"); 1860MODULE_AUTHOR("Jamie Iles");