Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+54 -57
+3 -3
drivers/crypto/atmel-aes.c
··· 1036 1036 return err; 1037 1037 } 1038 1038 1039 - static int __devinit atmel_aes_probe(struct platform_device *pdev) 1039 + static int atmel_aes_probe(struct platform_device *pdev) 1040 1040 { 1041 1041 struct atmel_aes_dev *aes_dd; 1042 1042 struct aes_platform_data *pdata; ··· 1152 1152 return err; 1153 1153 } 1154 1154 1155 - static int __devexit atmel_aes_remove(struct platform_device *pdev) 1155 + static int atmel_aes_remove(struct platform_device *pdev) 1156 1156 { 1157 1157 static struct atmel_aes_dev *aes_dd; 1158 1158 ··· 1185 1185 1186 1186 static struct platform_driver atmel_aes_driver = { 1187 1187 .probe = atmel_aes_probe, 1188 - .remove = __devexit_p(atmel_aes_remove), 1188 + .remove = atmel_aes_remove, 1189 1189 .driver = { 1190 1190 .name = "atmel_aes", 1191 1191 .owner = THIS_MODULE,
+3 -3
drivers/crypto/atmel-sha.c
··· 964 964 return err; 965 965 } 966 966 967 - static int __devinit atmel_sha_probe(struct platform_device *pdev) 967 + static int atmel_sha_probe(struct platform_device *pdev) 968 968 { 969 969 struct atmel_sha_dev *sha_dd; 970 970 struct device *dev = &pdev->dev; ··· 1063 1063 return err; 1064 1064 } 1065 1065 1066 - static int __devexit atmel_sha_remove(struct platform_device *pdev) 1066 + static int atmel_sha_remove(struct platform_device *pdev) 1067 1067 { 1068 1068 static struct atmel_sha_dev *sha_dd; 1069 1069 ··· 1093 1093 1094 1094 static struct platform_driver atmel_sha_driver = { 1095 1095 .probe = atmel_sha_probe, 1096 - .remove = __devexit_p(atmel_sha_remove), 1096 + .remove = atmel_sha_remove, 1097 1097 .driver = { 1098 1098 .name = "atmel_sha", 1099 1099 .owner = THIS_MODULE,
+3 -3
drivers/crypto/atmel-tdes.c
··· 1053 1053 return err; 1054 1054 } 1055 1055 1056 - static int __devinit atmel_tdes_probe(struct platform_device *pdev) 1056 + static int atmel_tdes_probe(struct platform_device *pdev) 1057 1057 { 1058 1058 struct atmel_tdes_dev *tdes_dd; 1059 1059 struct device *dev = &pdev->dev; ··· 1162 1162 return err; 1163 1163 } 1164 1164 1165 - static int __devexit atmel_tdes_remove(struct platform_device *pdev) 1165 + static int atmel_tdes_remove(struct platform_device *pdev) 1166 1166 { 1167 1167 static struct atmel_tdes_dev *tdes_dd; 1168 1168 ··· 1195 1195 1196 1196 static struct platform_driver atmel_tdes_driver = { 1197 1197 .probe = atmel_tdes_probe, 1198 - .remove = __devexit_p(atmel_tdes_remove), 1198 + .remove = atmel_tdes_remove, 1199 1199 .driver = { 1200 1200 .name = "atmel_tdes", 1201 1201 .owner = THIS_MODULE,
+3 -3
drivers/crypto/bfin_crc.c
··· 586 586 * bfin_crypto_crc_probe - Initialize module 587 587 * 588 588 */ 589 - static int __devinit bfin_crypto_crc_probe(struct platform_device *pdev) 589 + static int bfin_crypto_crc_probe(struct platform_device *pdev) 590 590 { 591 591 struct device *dev = &pdev->dev; 592 592 struct resource *res; ··· 707 707 * bfin_crypto_crc_remove - Initialize module 708 708 * 709 709 */ 710 - static int __devexit bfin_crypto_crc_remove(struct platform_device *pdev) 710 + static int bfin_crypto_crc_remove(struct platform_device *pdev) 711 711 { 712 712 struct bfin_crypto_crc *crc = platform_get_drvdata(pdev); 713 713 ··· 731 731 732 732 static struct platform_driver bfin_crypto_crc_driver = { 733 733 .probe = bfin_crypto_crc_probe, 734 - .remove = __devexit_p(bfin_crypto_crc_remove), 734 + .remove = bfin_crypto_crc_remove, 735 735 .suspend = bfin_crypto_crc_suspend, 736 736 .resume = bfin_crypto_crc_resume, 737 737 .driver = {
+1 -1
drivers/crypto/caam/ctrl.c
··· 420 420 .of_match_table = caam_match, 421 421 }, 422 422 .probe = caam_probe, 423 - .remove = __devexit_p(caam_remove), 423 + .remove = caam_remove, 424 424 }; 425 425 426 426 module_platform_driver(caam_driver);
+3 -5
drivers/crypto/geode-aes.c
··· 498 498 } 499 499 }; 500 500 501 - static void __devexit 502 - geode_aes_remove(struct pci_dev *dev) 501 + static void geode_aes_remove(struct pci_dev *dev) 503 502 { 504 503 crypto_unregister_alg(&geode_alg); 505 504 crypto_unregister_alg(&geode_ecb_alg); ··· 512 513 } 513 514 514 515 515 - static int __devinit 516 - geode_aes_probe(struct pci_dev *dev, const struct pci_device_id *id) 516 + static int geode_aes_probe(struct pci_dev *dev, const struct pci_device_id *id) 517 517 { 518 518 int ret; 519 519 ret = pci_enable_device(dev); ··· 580 582 .name = "Geode LX AES", 581 583 .id_table = geode_aes_tbl, 582 584 .probe = geode_aes_probe, 583 - .remove = __devexit_p(geode_aes_remove) 585 + .remove = geode_aes_remove, 584 586 }; 585 587 586 588 module_pci_driver(geode_aes_driver);
+3 -3
drivers/crypto/hifn_795x.c
··· 2561 2561 hifn_process_queue(dev); 2562 2562 } 2563 2563 2564 - static int __devinit hifn_probe(struct pci_dev *pdev, const struct pci_device_id *id) 2564 + static int hifn_probe(struct pci_dev *pdev, const struct pci_device_id *id) 2565 2565 { 2566 2566 int err, i; 2567 2567 struct hifn_device *dev; ··· 2696 2696 return err; 2697 2697 } 2698 2698 2699 - static void __devexit hifn_remove(struct pci_dev *pdev) 2699 + static void hifn_remove(struct pci_dev *pdev) 2700 2700 { 2701 2701 int i; 2702 2702 struct hifn_device *dev; ··· 2740 2740 .name = "hifn795x", 2741 2741 .id_table = hifn_pci_tbl, 2742 2742 .probe = hifn_probe, 2743 - .remove = __devexit_p(hifn_remove), 2743 + .remove = hifn_remove, 2744 2744 }; 2745 2745 2746 2746 static int __init hifn_init(void)
+1 -1
drivers/crypto/mv_cesa.c
··· 1184 1184 1185 1185 static struct platform_driver marvell_crypto = { 1186 1186 .probe = mv_probe, 1187 - .remove = __devexit_p(mv_remove), 1187 + .remove = mv_remove, 1188 1188 .driver = { 1189 1189 .owner = THIS_MODULE, 1190 1190 .name = "mv_crypto",
+23 -23
drivers/crypto/n2_core.c
··· 34 34 #define DRV_MODULE_VERSION "0.2" 35 35 #define DRV_MODULE_RELDATE "July 28, 2011" 36 36 37 - static char version[] __devinitdata = 37 + static char version[] = 38 38 DRV_MODULE_NAME ".c:v" DRV_MODULE_VERSION " (" DRV_MODULE_RELDATE ")\n"; 39 39 40 40 MODULE_AUTHOR("David S. Miller (davem@davemloft.net)"); ··· 1388 1388 return 0; 1389 1389 } 1390 1390 1391 - static int __devinit __n2_register_one_cipher(const struct n2_cipher_tmpl *tmpl) 1391 + static int __n2_register_one_cipher(const struct n2_cipher_tmpl *tmpl) 1392 1392 { 1393 1393 struct n2_cipher_alg *p = kzalloc(sizeof(*p), GFP_KERNEL); 1394 1394 struct crypto_alg *alg; ··· 1424 1424 return err; 1425 1425 } 1426 1426 1427 - static int __devinit __n2_register_one_hmac(struct n2_ahash_alg *n2ahash) 1427 + static int __n2_register_one_hmac(struct n2_ahash_alg *n2ahash) 1428 1428 { 1429 1429 struct n2_hmac_alg *p = kzalloc(sizeof(*p), GFP_KERNEL); 1430 1430 struct ahash_alg *ahash; ··· 1462 1462 return err; 1463 1463 } 1464 1464 1465 - static int __devinit __n2_register_one_ahash(const struct n2_hash_tmpl *tmpl) 1465 + static int __n2_register_one_ahash(const struct n2_hash_tmpl *tmpl) 1466 1466 { 1467 1467 struct n2_ahash_alg *p = kzalloc(sizeof(*p), GFP_KERNEL); 1468 1468 struct hash_alg_common *halg; ··· 1517 1517 return err; 1518 1518 } 1519 1519 1520 - static int __devinit n2_register_algs(void) 1520 + static int n2_register_algs(void) 1521 1521 { 1522 1522 int i, err = 0; 1523 1523 ··· 1545 1545 return err; 1546 1546 } 1547 1547 1548 - static void __devexit n2_unregister_algs(void) 1548 + static void n2_unregister_algs(void) 1549 1549 { 1550 1550 mutex_lock(&spu_lock); 1551 1551 if (!--algs_registered) ··· 1822 1822 return err; 1823 1823 } 1824 1824 1825 - static int __devinit get_irq_props(struct mdesc_handle *mdesc, u64 node, 1826 - struct spu_mdesc_info *ip) 1825 + static int get_irq_props(struct mdesc_handle *mdesc, u64 node, 1826 + struct spu_mdesc_info *ip) 1827 1827 { 1828 1828 const u64 *ino; 1829 1829 int ino_len; ··· 1851 1851 return 0; 1852 1852 } 1853 1853 1854 - static int __devinit grab_mdesc_irq_props(struct mdesc_handle *mdesc, 1855 - struct platform_device *dev, 1856 - struct spu_mdesc_info *ip, 1857 - const char *node_name) 1854 + static int grab_mdesc_irq_props(struct mdesc_handle *mdesc, 1855 + struct platform_device *dev, 1856 + struct spu_mdesc_info *ip, 1857 + const char *node_name) 1858 1858 { 1859 1859 const unsigned int *reg; 1860 1860 u64 node; ··· 1883 1883 static unsigned long n2_spu_hvapi_major; 1884 1884 static unsigned long n2_spu_hvapi_minor; 1885 1885 1886 - static int __devinit n2_spu_hvapi_register(void) 1886 + static int n2_spu_hvapi_register(void) 1887 1887 { 1888 1888 int err; 1889 1889 ··· 1909 1909 1910 1910 static int global_ref; 1911 1911 1912 - static int __devinit grab_global_resources(void) 1912 + static int grab_global_resources(void) 1913 1913 { 1914 1914 int err = 0; 1915 1915 ··· 1973 1973 mutex_unlock(&spu_lock); 1974 1974 } 1975 1975 1976 - static struct n2_crypto * __devinit alloc_n2cp(void) 1976 + static struct n2_crypto *alloc_n2cp(void) 1977 1977 { 1978 1978 struct n2_crypto *np = kzalloc(sizeof(struct n2_crypto), GFP_KERNEL); 1979 1979 ··· 1993 1993 kfree(np); 1994 1994 } 1995 1995 1996 - static void __devinit n2_spu_driver_version(void) 1996 + static void n2_spu_driver_version(void) 1997 1997 { 1998 1998 static int n2_spu_version_printed; 1999 1999 ··· 2001 2001 pr_info("%s", version); 2002 2002 } 2003 2003 2004 - static int __devinit n2_crypto_probe(struct platform_device *dev) 2004 + static int n2_crypto_probe(struct platform_device *dev) 2005 2005 { 2006 2006 struct mdesc_handle *mdesc; 2007 2007 const char *full_name; ··· 2077 2077 return err; 2078 2078 } 2079 2079 2080 - static int __devexit n2_crypto_remove(struct platform_device *dev) 2080 + static int n2_crypto_remove(struct platform_device *dev) 2081 2081 { 2082 2082 struct n2_crypto *np = dev_get_drvdata(&dev->dev); 2083 2083 ··· 2092 2092 return 0; 2093 2093 } 2094 2094 2095 - static struct n2_mau * __devinit alloc_ncp(void) 2095 + static struct n2_mau *alloc_ncp(void) 2096 2096 { 2097 2097 struct n2_mau *mp = kzalloc(sizeof(struct n2_mau), GFP_KERNEL); 2098 2098 ··· 2112 2112 kfree(mp); 2113 2113 } 2114 2114 2115 - static int __devinit n2_mau_probe(struct platform_device *dev) 2115 + static int n2_mau_probe(struct platform_device *dev) 2116 2116 { 2117 2117 struct mdesc_handle *mdesc; 2118 2118 const char *full_name; ··· 2179 2179 return err; 2180 2180 } 2181 2181 2182 - static int __devexit n2_mau_remove(struct platform_device *dev) 2182 + static int n2_mau_remove(struct platform_device *dev) 2183 2183 { 2184 2184 struct n2_mau *mp = dev_get_drvdata(&dev->dev); 2185 2185 ··· 2217 2217 .of_match_table = n2_crypto_match, 2218 2218 }, 2219 2219 .probe = n2_crypto_probe, 2220 - .remove = __devexit_p(n2_crypto_remove), 2220 + .remove = n2_crypto_remove, 2221 2221 }; 2222 2222 2223 2223 static struct of_device_id n2_mau_match[] = { ··· 2245 2245 .of_match_table = n2_mau_match, 2246 2246 }, 2247 2247 .probe = n2_mau_probe, 2248 - .remove = __devexit_p(n2_mau_remove), 2248 + .remove = n2_mau_remove, 2249 2249 }; 2250 2250 2251 2251 static int __init n2_init(void)
+3 -4
drivers/crypto/nx/nx.c
··· 634 634 nx_ctx->out_sg = NULL; 635 635 } 636 636 637 - static int __devinit nx_probe(struct vio_dev *viodev, 638 - const struct vio_device_id *id) 637 + static int nx_probe(struct vio_dev *viodev, const struct vio_device_id *id) 639 638 { 640 639 dev_dbg(&viodev->dev, "driver probed: %s resource id: 0x%x\n", 641 640 viodev->name, viodev->resource_id); ··· 652 653 return nx_register_algs(); 653 654 } 654 655 655 - static int __devexit nx_remove(struct vio_dev *viodev) 656 + static int nx_remove(struct vio_dev *viodev) 656 657 { 657 658 dev_dbg(&viodev->dev, "entering nx_remove for UA 0x%x\n", 658 659 viodev->unit_address); ··· 688 689 vio_unregister_driver(&nx_driver.viodriver); 689 690 } 690 691 691 - static struct vio_device_id nx_crypto_driver_ids[] __devinitdata = { 692 + static struct vio_device_id nx_crypto_driver_ids[] = { 692 693 { "ibm,sym-encryption-v1", "ibm,sym-encryption" }, 693 694 { "", "" } 694 695 };
+2 -2
drivers/crypto/omap-sham.c
··· 1137 1137 } 1138 1138 } 1139 1139 1140 - static int __devinit omap_sham_probe(struct platform_device *pdev) 1140 + static int omap_sham_probe(struct platform_device *pdev) 1141 1141 { 1142 1142 struct omap_sham_dev *dd; 1143 1143 struct device *dev = &pdev->dev; ··· 1250 1250 return err; 1251 1251 } 1252 1252 1253 - static int __devexit omap_sham_remove(struct platform_device *pdev) 1253 + static int omap_sham_remove(struct platform_device *pdev) 1254 1254 { 1255 1255 static struct omap_sham_dev *dd; 1256 1256 int i;
+3 -3
drivers/crypto/picoxcell_crypto.c
··· 1708 1708 return false; 1709 1709 } 1710 1710 1711 - static int __devinit spacc_probe(struct platform_device *pdev) 1711 + static int spacc_probe(struct platform_device *pdev) 1712 1712 { 1713 1713 int i, err, ret = -EINVAL; 1714 1714 struct resource *mem, *irq; ··· 1841 1841 return ret; 1842 1842 } 1843 1843 1844 - static int __devexit spacc_remove(struct platform_device *pdev) 1844 + static int spacc_remove(struct platform_device *pdev) 1845 1845 { 1846 1846 struct spacc_alg *alg, *next; 1847 1847 struct spacc_engine *engine = platform_get_drvdata(pdev); ··· 1868 1868 1869 1869 static struct platform_driver spacc_driver = { 1870 1870 .probe = spacc_probe, 1871 - .remove = __devexit_p(spacc_remove), 1871 + .remove = spacc_remove, 1872 1872 .driver = { 1873 1873 .name = "picochip,spacc", 1874 1874 #ifdef CONFIG_PM
+3 -3
drivers/crypto/tegra-aes.c
··· 1047 1047 return err; 1048 1048 } 1049 1049 1050 - static int __devexit tegra_aes_remove(struct platform_device *pdev) 1050 + static int tegra_aes_remove(struct platform_device *pdev) 1051 1051 { 1052 1052 struct device *dev = &pdev->dev; 1053 1053 struct tegra_aes_dev *dd = platform_get_drvdata(pdev); ··· 1074 1074 return 0; 1075 1075 } 1076 1076 1077 - static struct of_device_id tegra_aes_of_match[] __devinitdata = { 1077 + static struct of_device_id tegra_aes_of_match[] = { 1078 1078 { .compatible = "nvidia,tegra20-aes", }, 1079 1079 { .compatible = "nvidia,tegra30-aes", }, 1080 1080 { }, ··· 1082 1082 1083 1083 static struct platform_driver tegra_aes_driver = { 1084 1084 .probe = tegra_aes_probe, 1085 - .remove = __devexit_p(tegra_aes_remove), 1085 + .remove = tegra_aes_remove, 1086 1086 .driver = { 1087 1087 .name = "tegra-aes", 1088 1088 .owner = THIS_MODULE,