aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-12-21 16:14:09 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-01-03 18:57:02 -0500
commit49cfe4db2ddc4d1b32f2bd4910a5a9d7a0e34ae8 (patch)
tree995b18a652e4f0853c66db254a62aea854b4a1ac /drivers
parented5a84cdf593e54969518e82762786fbe1284ce4 (diff)
Drivers: crypto: remove __dev* attributes.
CONFIG_HOTPLUG is going away as an option. As a result, the __dev* markings need to be removed. This change removes the use of __devinit, __devexit_p, __devinitdata, and __devexit from these drivers. Based on patches originally written by Bill Pemberton, but redone by me in order to handle some of the coding style issues better, by hand. Cc: Bill Pemberton <wfp5p@virginia.edu> Cc: Herbert Xu <herbert@gondor.apana.org.au> Cc: "David S. Miller" <davem@davemloft.net> Cc: Kent Yoder <key@linux.vnet.ibm.com> Cc: Jamie Iles <jamie@jamieiles.com> Cc: Kim Phillips <kim.phillips@freescale.com> Cc: Shengzhou Liu <Shengzhou.Liu@freescale.com> Cc: Alex Porosanu <alexandru.porosanu@freescale.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/crypto/atmel-aes.c6
-rw-r--r--drivers/crypto/atmel-sha.c6
-rw-r--r--drivers/crypto/atmel-tdes.c6
-rw-r--r--drivers/crypto/bfin_crc.c6
-rw-r--r--drivers/crypto/caam/ctrl.c2
-rw-r--r--drivers/crypto/geode-aes.c8
-rw-r--r--drivers/crypto/hifn_795x.c6
-rw-r--r--drivers/crypto/mv_cesa.c2
-rw-r--r--drivers/crypto/n2_core.c46
-rw-r--r--drivers/crypto/nx/nx.c7
-rw-r--r--drivers/crypto/omap-sham.c4
-rw-r--r--drivers/crypto/picoxcell_crypto.c6
-rw-r--r--drivers/crypto/tegra-aes.c6
13 files changed, 54 insertions, 57 deletions
diff --git a/drivers/crypto/atmel-aes.c b/drivers/crypto/atmel-aes.c
index 8061336e07e7..c9d9d5c16f94 100644
--- a/drivers/crypto/atmel-aes.c
+++ b/drivers/crypto/atmel-aes.c
@@ -1036,7 +1036,7 @@ err_aes_algs:
1036 return err; 1036 return err;
1037} 1037}
1038 1038
1039static int __devinit atmel_aes_probe(struct platform_device *pdev) 1039static int atmel_aes_probe(struct platform_device *pdev)
1040{ 1040{
1041 struct atmel_aes_dev *aes_dd; 1041 struct atmel_aes_dev *aes_dd;
1042 struct aes_platform_data *pdata; 1042 struct aes_platform_data *pdata;
@@ -1152,7 +1152,7 @@ aes_dd_err:
1152 return err; 1152 return err;
1153} 1153}
1154 1154
1155static int __devexit atmel_aes_remove(struct platform_device *pdev) 1155static int atmel_aes_remove(struct platform_device *pdev)
1156{ 1156{
1157 static struct atmel_aes_dev *aes_dd; 1157 static struct atmel_aes_dev *aes_dd;
1158 1158
@@ -1185,7 +1185,7 @@ static int __devexit atmel_aes_remove(struct platform_device *pdev)
1185 1185
1186static struct platform_driver atmel_aes_driver = { 1186static struct platform_driver atmel_aes_driver = {
1187 .probe = atmel_aes_probe, 1187 .probe = atmel_aes_probe,
1188 .remove = __devexit_p(atmel_aes_remove), 1188 .remove = atmel_aes_remove,
1189 .driver = { 1189 .driver = {
1190 .name = "atmel_aes", 1190 .name = "atmel_aes",
1191 .owner = THIS_MODULE, 1191 .owner = THIS_MODULE,
diff --git a/drivers/crypto/atmel-sha.c b/drivers/crypto/atmel-sha.c
index bcdf55fdc623..4918e9424d31 100644
--- a/drivers/crypto/atmel-sha.c
+++ b/drivers/crypto/atmel-sha.c
@@ -964,7 +964,7 @@ err_sha_algs:
964 return err; 964 return err;
965} 965}
966 966
967static int __devinit atmel_sha_probe(struct platform_device *pdev) 967static int atmel_sha_probe(struct platform_device *pdev)
968{ 968{
969 struct atmel_sha_dev *sha_dd; 969 struct atmel_sha_dev *sha_dd;
970 struct device *dev = &pdev->dev; 970 struct device *dev = &pdev->dev;
@@ -1063,7 +1063,7 @@ sha_dd_err:
1063 return err; 1063 return err;
1064} 1064}
1065 1065
1066static int __devexit atmel_sha_remove(struct platform_device *pdev) 1066static int atmel_sha_remove(struct platform_device *pdev)
1067{ 1067{
1068 static struct atmel_sha_dev *sha_dd; 1068 static struct atmel_sha_dev *sha_dd;
1069 1069
@@ -1093,7 +1093,7 @@ static int __devexit atmel_sha_remove(struct platform_device *pdev)
1093 1093
1094static struct platform_driver atmel_sha_driver = { 1094static struct platform_driver atmel_sha_driver = {
1095 .probe = atmel_sha_probe, 1095 .probe = atmel_sha_probe,
1096 .remove = __devexit_p(atmel_sha_remove), 1096 .remove = atmel_sha_remove,
1097 .driver = { 1097 .driver = {
1098 .name = "atmel_sha", 1098 .name = "atmel_sha",
1099 .owner = THIS_MODULE, 1099 .owner = THIS_MODULE,
diff --git a/drivers/crypto/atmel-tdes.c b/drivers/crypto/atmel-tdes.c
index 7495f98c7221..7c73fbb17538 100644
--- a/drivers/crypto/atmel-tdes.c
+++ b/drivers/crypto/atmel-tdes.c
@@ -1053,7 +1053,7 @@ err_tdes_algs:
1053 return err; 1053 return err;
1054} 1054}
1055 1055
1056static int __devinit atmel_tdes_probe(struct platform_device *pdev) 1056static int atmel_tdes_probe(struct platform_device *pdev)
1057{ 1057{
1058 struct atmel_tdes_dev *tdes_dd; 1058 struct atmel_tdes_dev *tdes_dd;
1059 struct device *dev = &pdev->dev; 1059 struct device *dev = &pdev->dev;
@@ -1162,7 +1162,7 @@ tdes_dd_err:
1162 return err; 1162 return err;
1163} 1163}
1164 1164
1165static int __devexit atmel_tdes_remove(struct platform_device *pdev) 1165static int atmel_tdes_remove(struct platform_device *pdev)
1166{ 1166{
1167 static struct atmel_tdes_dev *tdes_dd; 1167 static struct atmel_tdes_dev *tdes_dd;
1168 1168
@@ -1195,7 +1195,7 @@ static int __devexit atmel_tdes_remove(struct platform_device *pdev)
1195 1195
1196static struct platform_driver atmel_tdes_driver = { 1196static struct platform_driver atmel_tdes_driver = {
1197 .probe = atmel_tdes_probe, 1197 .probe = atmel_tdes_probe,
1198 .remove = __devexit_p(atmel_tdes_remove), 1198 .remove = atmel_tdes_remove,
1199 .driver = { 1199 .driver = {
1200 .name = "atmel_tdes", 1200 .name = "atmel_tdes",
1201 .owner = THIS_MODULE, 1201 .owner = THIS_MODULE,
diff --git a/drivers/crypto/bfin_crc.c b/drivers/crypto/bfin_crc.c
index 5398580b4313..a22f1a9f895f 100644
--- a/drivers/crypto/bfin_crc.c
+++ b/drivers/crypto/bfin_crc.c
@@ -586,7 +586,7 @@ static int bfin_crypto_crc_suspend(struct platform_device *pdev, pm_message_t st
586 * bfin_crypto_crc_probe - Initialize module 586 * bfin_crypto_crc_probe - Initialize module
587 * 587 *
588 */ 588 */
589static int __devinit bfin_crypto_crc_probe(struct platform_device *pdev) 589static int bfin_crypto_crc_probe(struct platform_device *pdev)
590{ 590{
591 struct device *dev = &pdev->dev; 591 struct device *dev = &pdev->dev;
592 struct resource *res; 592 struct resource *res;
@@ -707,7 +707,7 @@ out_error_free_mem:
707 * bfin_crypto_crc_remove - Initialize module 707 * bfin_crypto_crc_remove - Initialize module
708 * 708 *
709 */ 709 */
710static int __devexit bfin_crypto_crc_remove(struct platform_device *pdev) 710static int bfin_crypto_crc_remove(struct platform_device *pdev)
711{ 711{
712 struct bfin_crypto_crc *crc = platform_get_drvdata(pdev); 712 struct bfin_crypto_crc *crc = platform_get_drvdata(pdev);
713 713
@@ -731,7 +731,7 @@ static int __devexit bfin_crypto_crc_remove(struct platform_device *pdev)
731 731
732static struct platform_driver bfin_crypto_crc_driver = { 732static struct platform_driver bfin_crypto_crc_driver = {
733 .probe = bfin_crypto_crc_probe, 733 .probe = bfin_crypto_crc_probe,
734 .remove = __devexit_p(bfin_crypto_crc_remove), 734 .remove = bfin_crypto_crc_remove,
735 .suspend = bfin_crypto_crc_suspend, 735 .suspend = bfin_crypto_crc_suspend,
736 .resume = bfin_crypto_crc_resume, 736 .resume = bfin_crypto_crc_resume,
737 .driver = { 737 .driver = {
diff --git a/drivers/crypto/caam/ctrl.c b/drivers/crypto/caam/ctrl.c
index bf20dd891705..1c56f63524f2 100644
--- a/drivers/crypto/caam/ctrl.c
+++ b/drivers/crypto/caam/ctrl.c
@@ -420,7 +420,7 @@ static struct platform_driver caam_driver = {
420 .of_match_table = caam_match, 420 .of_match_table = caam_match,
421 }, 421 },
422 .probe = caam_probe, 422 .probe = caam_probe,
423 .remove = __devexit_p(caam_remove), 423 .remove = caam_remove,
424}; 424};
425 425
426module_platform_driver(caam_driver); 426module_platform_driver(caam_driver);
diff --git a/drivers/crypto/geode-aes.c b/drivers/crypto/geode-aes.c
index 51f196d77f21..0c9ff4971724 100644
--- a/drivers/crypto/geode-aes.c
+++ b/drivers/crypto/geode-aes.c
@@ -498,8 +498,7 @@ static struct crypto_alg geode_ecb_alg = {
498 } 498 }
499}; 499};
500 500
501static void __devexit 501static void geode_aes_remove(struct pci_dev *dev)
502geode_aes_remove(struct pci_dev *dev)
503{ 502{
504 crypto_unregister_alg(&geode_alg); 503 crypto_unregister_alg(&geode_alg);
505 crypto_unregister_alg(&geode_ecb_alg); 504 crypto_unregister_alg(&geode_ecb_alg);
@@ -513,8 +512,7 @@ geode_aes_remove(struct pci_dev *dev)
513} 512}
514 513
515 514
516static int __devinit 515static int geode_aes_probe(struct pci_dev *dev, const struct pci_device_id *id)
517geode_aes_probe(struct pci_dev *dev, const struct pci_device_id *id)
518{ 516{
519 int ret; 517 int ret;
520 ret = pci_enable_device(dev); 518 ret = pci_enable_device(dev);
@@ -582,7 +580,7 @@ static struct pci_driver geode_aes_driver = {
582 .name = "Geode LX AES", 580 .name = "Geode LX AES",
583 .id_table = geode_aes_tbl, 581 .id_table = geode_aes_tbl,
584 .probe = geode_aes_probe, 582 .probe = geode_aes_probe,
585 .remove = __devexit_p(geode_aes_remove) 583 .remove = geode_aes_remove,
586}; 584};
587 585
588module_pci_driver(geode_aes_driver); 586module_pci_driver(geode_aes_driver);
diff --git a/drivers/crypto/hifn_795x.c b/drivers/crypto/hifn_795x.c
index fda32968a66b..ebf130e894b5 100644
--- a/drivers/crypto/hifn_795x.c
+++ b/drivers/crypto/hifn_795x.c
@@ -2561,7 +2561,7 @@ static void hifn_tasklet_callback(unsigned long data)
2561 hifn_process_queue(dev); 2561 hifn_process_queue(dev);
2562} 2562}
2563 2563
2564static int __devinit hifn_probe(struct pci_dev *pdev, const struct pci_device_id *id) 2564static int hifn_probe(struct pci_dev *pdev, const struct pci_device_id *id)
2565{ 2565{
2566 int err, i; 2566 int err, i;
2567 struct hifn_device *dev; 2567 struct hifn_device *dev;
@@ -2696,7 +2696,7 @@ err_out_disable_pci_device:
2696 return err; 2696 return err;
2697} 2697}
2698 2698
2699static void __devexit hifn_remove(struct pci_dev *pdev) 2699static void hifn_remove(struct pci_dev *pdev)
2700{ 2700{
2701 int i; 2701 int i;
2702 struct hifn_device *dev; 2702 struct hifn_device *dev;
@@ -2740,7 +2740,7 @@ static struct pci_driver hifn_pci_driver = {
2740 .name = "hifn795x", 2740 .name = "hifn795x",
2741 .id_table = hifn_pci_tbl, 2741 .id_table = hifn_pci_tbl,
2742 .probe = hifn_probe, 2742 .probe = hifn_probe,
2743 .remove = __devexit_p(hifn_remove), 2743 .remove = hifn_remove,
2744}; 2744};
2745 2745
2746static int __init hifn_init(void) 2746static int __init hifn_init(void)
diff --git a/drivers/crypto/mv_cesa.c b/drivers/crypto/mv_cesa.c
index 24ccae453e79..ce6290e5471a 100644
--- a/drivers/crypto/mv_cesa.c
+++ b/drivers/crypto/mv_cesa.c
@@ -1184,7 +1184,7 @@ MODULE_DEVICE_TABLE(of, mv_cesa_of_match_table);
1184 1184
1185static struct platform_driver marvell_crypto = { 1185static struct platform_driver marvell_crypto = {
1186 .probe = mv_probe, 1186 .probe = mv_probe,
1187 .remove = __devexit_p(mv_remove), 1187 .remove = mv_remove,
1188 .driver = { 1188 .driver = {
1189 .owner = THIS_MODULE, 1189 .owner = THIS_MODULE,
1190 .name = "mv_crypto", 1190 .name = "mv_crypto",
diff --git a/drivers/crypto/n2_core.c b/drivers/crypto/n2_core.c
index aab257403b4a..e1f0ab413c3b 100644
--- a/drivers/crypto/n2_core.c
+++ b/drivers/crypto/n2_core.c
@@ -34,7 +34,7 @@
34#define DRV_MODULE_VERSION "0.2" 34#define DRV_MODULE_VERSION "0.2"
35#define DRV_MODULE_RELDATE "July 28, 2011" 35#define DRV_MODULE_RELDATE "July 28, 2011"
36 36
37static char version[] __devinitdata = 37static char version[] =
38 DRV_MODULE_NAME ".c:v" DRV_MODULE_VERSION " (" DRV_MODULE_RELDATE ")\n"; 38 DRV_MODULE_NAME ".c:v" DRV_MODULE_VERSION " (" DRV_MODULE_RELDATE ")\n";
39 39
40MODULE_AUTHOR("David S. Miller (davem@davemloft.net)"); 40MODULE_AUTHOR("David S. Miller (davem@davemloft.net)");
@@ -1388,7 +1388,7 @@ static int n2_cipher_cra_init(struct crypto_tfm *tfm)
1388 return 0; 1388 return 0;
1389} 1389}
1390 1390
1391static int __devinit __n2_register_one_cipher(const struct n2_cipher_tmpl *tmpl) 1391static int __n2_register_one_cipher(const struct n2_cipher_tmpl *tmpl)
1392{ 1392{
1393 struct n2_cipher_alg *p = kzalloc(sizeof(*p), GFP_KERNEL); 1393 struct n2_cipher_alg *p = kzalloc(sizeof(*p), GFP_KERNEL);
1394 struct crypto_alg *alg; 1394 struct crypto_alg *alg;
@@ -1424,7 +1424,7 @@ static int __devinit __n2_register_one_cipher(const struct n2_cipher_tmpl *tmpl)
1424 return err; 1424 return err;
1425} 1425}
1426 1426
1427static int __devinit __n2_register_one_hmac(struct n2_ahash_alg *n2ahash) 1427static int __n2_register_one_hmac(struct n2_ahash_alg *n2ahash)
1428{ 1428{
1429 struct n2_hmac_alg *p = kzalloc(sizeof(*p), GFP_KERNEL); 1429 struct n2_hmac_alg *p = kzalloc(sizeof(*p), GFP_KERNEL);
1430 struct ahash_alg *ahash; 1430 struct ahash_alg *ahash;
@@ -1462,7 +1462,7 @@ static int __devinit __n2_register_one_hmac(struct n2_ahash_alg *n2ahash)
1462 return err; 1462 return err;
1463} 1463}
1464 1464
1465static int __devinit __n2_register_one_ahash(const struct n2_hash_tmpl *tmpl) 1465static int __n2_register_one_ahash(const struct n2_hash_tmpl *tmpl)
1466{ 1466{
1467 struct n2_ahash_alg *p = kzalloc(sizeof(*p), GFP_KERNEL); 1467 struct n2_ahash_alg *p = kzalloc(sizeof(*p), GFP_KERNEL);
1468 struct hash_alg_common *halg; 1468 struct hash_alg_common *halg;
@@ -1517,7 +1517,7 @@ static int __devinit __n2_register_one_ahash(const struct n2_hash_tmpl *tmpl)
1517 return err; 1517 return err;
1518} 1518}
1519 1519
1520static int __devinit n2_register_algs(void) 1520static int n2_register_algs(void)
1521{ 1521{
1522 int i, err = 0; 1522 int i, err = 0;
1523 1523
@@ -1545,7 +1545,7 @@ out:
1545 return err; 1545 return err;
1546} 1546}
1547 1547
1548static void __devexit n2_unregister_algs(void) 1548static void n2_unregister_algs(void)
1549{ 1549{
1550 mutex_lock(&spu_lock); 1550 mutex_lock(&spu_lock);
1551 if (!--algs_registered) 1551 if (!--algs_registered)
@@ -1822,8 +1822,8 @@ static int spu_mdesc_scan(struct mdesc_handle *mdesc, struct platform_device *de
1822 return err; 1822 return err;
1823} 1823}
1824 1824
1825static int __devinit get_irq_props(struct mdesc_handle *mdesc, u64 node, 1825static int get_irq_props(struct mdesc_handle *mdesc, u64 node,
1826 struct spu_mdesc_info *ip) 1826 struct spu_mdesc_info *ip)
1827{ 1827{
1828 const u64 *ino; 1828 const u64 *ino;
1829 int ino_len; 1829 int ino_len;
@@ -1851,10 +1851,10 @@ static int __devinit get_irq_props(struct mdesc_handle *mdesc, u64 node,
1851 return 0; 1851 return 0;
1852} 1852}
1853 1853
1854static int __devinit grab_mdesc_irq_props(struct mdesc_handle *mdesc, 1854static int grab_mdesc_irq_props(struct mdesc_handle *mdesc,
1855 struct platform_device *dev, 1855 struct platform_device *dev,
1856 struct spu_mdesc_info *ip, 1856 struct spu_mdesc_info *ip,
1857 const char *node_name) 1857 const char *node_name)
1858{ 1858{
1859 const unsigned int *reg; 1859 const unsigned int *reg;
1860 u64 node; 1860 u64 node;
@@ -1883,7 +1883,7 @@ static int __devinit grab_mdesc_irq_props(struct mdesc_handle *mdesc,
1883static unsigned long n2_spu_hvapi_major; 1883static unsigned long n2_spu_hvapi_major;
1884static unsigned long n2_spu_hvapi_minor; 1884static unsigned long n2_spu_hvapi_minor;
1885 1885
1886static int __devinit n2_spu_hvapi_register(void) 1886static int n2_spu_hvapi_register(void)
1887{ 1887{
1888 int err; 1888 int err;
1889 1889
@@ -1909,7 +1909,7 @@ static void n2_spu_hvapi_unregister(void)
1909 1909
1910static int global_ref; 1910static int global_ref;
1911 1911
1912static int __devinit grab_global_resources(void) 1912static int grab_global_resources(void)
1913{ 1913{
1914 int err = 0; 1914 int err = 0;
1915 1915
@@ -1973,7 +1973,7 @@ static void release_global_resources(void)
1973 mutex_unlock(&spu_lock); 1973 mutex_unlock(&spu_lock);
1974} 1974}
1975 1975
1976static struct n2_crypto * __devinit alloc_n2cp(void) 1976static struct n2_crypto *alloc_n2cp(void)
1977{ 1977{
1978 struct n2_crypto *np = kzalloc(sizeof(struct n2_crypto), GFP_KERNEL); 1978 struct n2_crypto *np = kzalloc(sizeof(struct n2_crypto), GFP_KERNEL);
1979 1979
@@ -1993,7 +1993,7 @@ static void free_n2cp(struct n2_crypto *np)
1993 kfree(np); 1993 kfree(np);
1994} 1994}
1995 1995
1996static void __devinit n2_spu_driver_version(void) 1996static void n2_spu_driver_version(void)
1997{ 1997{
1998 static int n2_spu_version_printed; 1998 static int n2_spu_version_printed;
1999 1999
@@ -2001,7 +2001,7 @@ static void __devinit n2_spu_driver_version(void)
2001 pr_info("%s", version); 2001 pr_info("%s", version);
2002} 2002}
2003 2003
2004static int __devinit n2_crypto_probe(struct platform_device *dev) 2004static int n2_crypto_probe(struct platform_device *dev)
2005{ 2005{
2006 struct mdesc_handle *mdesc; 2006 struct mdesc_handle *mdesc;
2007 const char *full_name; 2007 const char *full_name;
@@ -2077,7 +2077,7 @@ out_free_n2cp:
2077 return err; 2077 return err;
2078} 2078}
2079 2079
2080static int __devexit n2_crypto_remove(struct platform_device *dev) 2080static int n2_crypto_remove(struct platform_device *dev)
2081{ 2081{
2082 struct n2_crypto *np = dev_get_drvdata(&dev->dev); 2082 struct n2_crypto *np = dev_get_drvdata(&dev->dev);
2083 2083
@@ -2092,7 +2092,7 @@ static int __devexit n2_crypto_remove(struct platform_device *dev)
2092 return 0; 2092 return 0;
2093} 2093}
2094 2094
2095static struct n2_mau * __devinit alloc_ncp(void) 2095static struct n2_mau *alloc_ncp(void)
2096{ 2096{
2097 struct n2_mau *mp = kzalloc(sizeof(struct n2_mau), GFP_KERNEL); 2097 struct n2_mau *mp = kzalloc(sizeof(struct n2_mau), GFP_KERNEL);
2098 2098
@@ -2112,7 +2112,7 @@ static void free_ncp(struct n2_mau *mp)
2112 kfree(mp); 2112 kfree(mp);
2113} 2113}
2114 2114
2115static int __devinit n2_mau_probe(struct platform_device *dev) 2115static int n2_mau_probe(struct platform_device *dev)
2116{ 2116{
2117 struct mdesc_handle *mdesc; 2117 struct mdesc_handle *mdesc;
2118 const char *full_name; 2118 const char *full_name;
@@ -2179,7 +2179,7 @@ out_free_ncp:
2179 return err; 2179 return err;
2180} 2180}
2181 2181
2182static int __devexit n2_mau_remove(struct platform_device *dev) 2182static int n2_mau_remove(struct platform_device *dev)
2183{ 2183{
2184 struct n2_mau *mp = dev_get_drvdata(&dev->dev); 2184 struct n2_mau *mp = dev_get_drvdata(&dev->dev);
2185 2185
@@ -2217,7 +2217,7 @@ static struct platform_driver n2_crypto_driver = {
2217 .of_match_table = n2_crypto_match, 2217 .of_match_table = n2_crypto_match,
2218 }, 2218 },
2219 .probe = n2_crypto_probe, 2219 .probe = n2_crypto_probe,
2220 .remove = __devexit_p(n2_crypto_remove), 2220 .remove = n2_crypto_remove,
2221}; 2221};
2222 2222
2223static struct of_device_id n2_mau_match[] = { 2223static struct of_device_id n2_mau_match[] = {
@@ -2245,7 +2245,7 @@ static struct platform_driver n2_mau_driver = {
2245 .of_match_table = n2_mau_match, 2245 .of_match_table = n2_mau_match,
2246 }, 2246 },
2247 .probe = n2_mau_probe, 2247 .probe = n2_mau_probe,
2248 .remove = __devexit_p(n2_mau_remove), 2248 .remove = n2_mau_remove,
2249}; 2249};
2250 2250
2251static int __init n2_init(void) 2251static int __init n2_init(void)
diff --git a/drivers/crypto/nx/nx.c b/drivers/crypto/nx/nx.c
index f7a8a16aa7d3..c767f232e693 100644
--- a/drivers/crypto/nx/nx.c
+++ b/drivers/crypto/nx/nx.c
@@ -634,8 +634,7 @@ void nx_crypto_ctx_exit(struct crypto_tfm *tfm)
634 nx_ctx->out_sg = NULL; 634 nx_ctx->out_sg = NULL;
635} 635}
636 636
637static int __devinit nx_probe(struct vio_dev *viodev, 637static int nx_probe(struct vio_dev *viodev, const struct vio_device_id *id)
638 const struct vio_device_id *id)
639{ 638{
640 dev_dbg(&viodev->dev, "driver probed: %s resource id: 0x%x\n", 639 dev_dbg(&viodev->dev, "driver probed: %s resource id: 0x%x\n",
641 viodev->name, viodev->resource_id); 640 viodev->name, viodev->resource_id);
@@ -653,7 +652,7 @@ static int __devinit nx_probe(struct vio_dev *viodev,
653 return nx_register_algs(); 652 return nx_register_algs();
654} 653}
655 654
656static int __devexit nx_remove(struct vio_dev *viodev) 655static int nx_remove(struct vio_dev *viodev)
657{ 656{
658 dev_dbg(&viodev->dev, "entering nx_remove for UA 0x%x\n", 657 dev_dbg(&viodev->dev, "entering nx_remove for UA 0x%x\n",
659 viodev->unit_address); 658 viodev->unit_address);
@@ -689,7 +688,7 @@ static void __exit nx_fini(void)
689 vio_unregister_driver(&nx_driver.viodriver); 688 vio_unregister_driver(&nx_driver.viodriver);
690} 689}
691 690
692static struct vio_device_id nx_crypto_driver_ids[] __devinitdata = { 691static struct vio_device_id nx_crypto_driver_ids[] = {
693 { "ibm,sym-encryption-v1", "ibm,sym-encryption" }, 692 { "ibm,sym-encryption-v1", "ibm,sym-encryption" },
694 { "", "" } 693 { "", "" }
695}; 694};
diff --git a/drivers/crypto/omap-sham.c b/drivers/crypto/omap-sham.c
index 1d75e6f95a58..90d34adc2a66 100644
--- a/drivers/crypto/omap-sham.c
+++ b/drivers/crypto/omap-sham.c
@@ -1137,7 +1137,7 @@ static void omap_sham_dma_cleanup(struct omap_sham_dev *dd)
1137 } 1137 }
1138} 1138}
1139 1139
1140static int __devinit omap_sham_probe(struct platform_device *pdev) 1140static int omap_sham_probe(struct platform_device *pdev)
1141{ 1141{
1142 struct omap_sham_dev *dd; 1142 struct omap_sham_dev *dd;
1143 struct device *dev = &pdev->dev; 1143 struct device *dev = &pdev->dev;
@@ -1250,7 +1250,7 @@ data_err:
1250 return err; 1250 return err;
1251} 1251}
1252 1252
1253static int __devexit omap_sham_remove(struct platform_device *pdev) 1253static int omap_sham_remove(struct platform_device *pdev)
1254{ 1254{
1255 static struct omap_sham_dev *dd; 1255 static struct omap_sham_dev *dd;
1256 int i; 1256 int i;
diff --git a/drivers/crypto/picoxcell_crypto.c b/drivers/crypto/picoxcell_crypto.c
index c983f869d2b7..2096d4685a9e 100644
--- a/drivers/crypto/picoxcell_crypto.c
+++ b/drivers/crypto/picoxcell_crypto.c
@@ -1708,7 +1708,7 @@ static bool spacc_is_compatible(struct platform_device *pdev,
1708 return false; 1708 return false;
1709} 1709}
1710 1710
1711static int __devinit spacc_probe(struct platform_device *pdev) 1711static int spacc_probe(struct platform_device *pdev)
1712{ 1712{
1713 int i, err, ret = -EINVAL; 1713 int i, err, ret = -EINVAL;
1714 struct resource *mem, *irq; 1714 struct resource *mem, *irq;
@@ -1841,7 +1841,7 @@ static int __devinit spacc_probe(struct platform_device *pdev)
1841 return ret; 1841 return ret;
1842} 1842}
1843 1843
1844static int __devexit spacc_remove(struct platform_device *pdev) 1844static int spacc_remove(struct platform_device *pdev)
1845{ 1845{
1846 struct spacc_alg *alg, *next; 1846 struct spacc_alg *alg, *next;
1847 struct spacc_engine *engine = platform_get_drvdata(pdev); 1847 struct spacc_engine *engine = platform_get_drvdata(pdev);
@@ -1868,7 +1868,7 @@ static const struct platform_device_id spacc_id_table[] = {
1868 1868
1869static struct platform_driver spacc_driver = { 1869static struct platform_driver spacc_driver = {
1870 .probe = spacc_probe, 1870 .probe = spacc_probe,
1871 .remove = __devexit_p(spacc_remove), 1871 .remove = spacc_remove,
1872 .driver = { 1872 .driver = {
1873 .name = "picochip,spacc", 1873 .name = "picochip,spacc",
1874#ifdef CONFIG_PM 1874#ifdef CONFIG_PM
diff --git a/drivers/crypto/tegra-aes.c b/drivers/crypto/tegra-aes.c
index eb32fd8cad14..85ea7525fa36 100644
--- a/drivers/crypto/tegra-aes.c
+++ b/drivers/crypto/tegra-aes.c
@@ -1047,7 +1047,7 @@ out:
1047 return err; 1047 return err;
1048} 1048}
1049 1049
1050static int __devexit tegra_aes_remove(struct platform_device *pdev) 1050static int tegra_aes_remove(struct platform_device *pdev)
1051{ 1051{
1052 struct device *dev = &pdev->dev; 1052 struct device *dev = &pdev->dev;
1053 struct tegra_aes_dev *dd = platform_get_drvdata(pdev); 1053 struct tegra_aes_dev *dd = platform_get_drvdata(pdev);
@@ -1074,7 +1074,7 @@ static int __devexit tegra_aes_remove(struct platform_device *pdev)
1074 return 0; 1074 return 0;
1075} 1075}
1076 1076
1077static struct of_device_id tegra_aes_of_match[] __devinitdata = { 1077static struct of_device_id tegra_aes_of_match[] = {
1078 { .compatible = "nvidia,tegra20-aes", }, 1078 { .compatible = "nvidia,tegra20-aes", },
1079 { .compatible = "nvidia,tegra30-aes", }, 1079 { .compatible = "nvidia,tegra30-aes", },
1080 { }, 1080 { },
@@ -1082,7 +1082,7 @@ static struct of_device_id tegra_aes_of_match[] __devinitdata = {
1082 1082
1083static struct platform_driver tegra_aes_driver = { 1083static struct platform_driver tegra_aes_driver = {
1084 .probe = tegra_aes_probe, 1084 .probe = tegra_aes_probe,
1085 .remove = __devexit_p(tegra_aes_remove), 1085 .remove = tegra_aes_remove,
1086 .driver = { 1086 .driver = {
1087 .name = "tegra-aes", 1087 .name = "tegra-aes",
1088 .owner = THIS_MODULE, 1088 .owner = THIS_MODULE,