aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Pemberton <wfp5p@virginia.edu>2012-12-03 09:24:09 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-12-03 14:16:56 -0500
commita0a4efedf9dea0f2dd9625181b48c1f8c6d5418e (patch)
tree14cd5e5bf2d4061b01e6ee9a10d3221f84cb8bd9
parent06b0e68327d499c3588c954d2a2d86458d451c4b (diff)
net/ethernet: remove __dev* attributes
CONFIG_HOTPLUG is going away as an option. As result the __dev* markings will be going away. Remove use of __devinit, __devexit_p, __devinitdata, __devinitconst, and __devexit. Signed-off-by: Bill Pemberton <wfp5p@virginia.edu> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/net/ethernet/dnet.c8
-rw-r--r--drivers/net/ethernet/ethoc.c8
-rw-r--r--drivers/net/ethernet/fealnx.c10
-rw-r--r--drivers/net/ethernet/lantiq_etop.c4
-rw-r--r--drivers/net/ethernet/s6gmac.c6
5 files changed, 18 insertions, 18 deletions
diff --git a/drivers/net/ethernet/dnet.c b/drivers/net/ethernet/dnet.c
index feb5095d81b7..2c177b329c8b 100644
--- a/drivers/net/ethernet/dnet.c
+++ b/drivers/net/ethernet/dnet.c
@@ -72,7 +72,7 @@ static void __dnet_set_hwaddr(struct dnet *bp)
72 dnet_writew_mac(bp, DNET_INTERNAL_MAC_ADDR_2_REG, tmp); 72 dnet_writew_mac(bp, DNET_INTERNAL_MAC_ADDR_2_REG, tmp);
73} 73}
74 74
75static void __devinit dnet_get_hwaddr(struct dnet *bp) 75static void dnet_get_hwaddr(struct dnet *bp)
76{ 76{
77 u16 tmp; 77 u16 tmp;
78 u8 addr[6]; 78 u8 addr[6];
@@ -826,7 +826,7 @@ static const struct net_device_ops dnet_netdev_ops = {
826 .ndo_change_mtu = eth_change_mtu, 826 .ndo_change_mtu = eth_change_mtu,
827}; 827};
828 828
829static int __devinit dnet_probe(struct platform_device *pdev) 829static int dnet_probe(struct platform_device *pdev)
830{ 830{
831 struct resource *res; 831 struct resource *res;
832 struct net_device *dev; 832 struct net_device *dev;
@@ -942,7 +942,7 @@ err_out:
942 return err; 942 return err;
943} 943}
944 944
945static int __devexit dnet_remove(struct platform_device *pdev) 945static int dnet_remove(struct platform_device *pdev)
946{ 946{
947 947
948 struct net_device *dev; 948 struct net_device *dev;
@@ -968,7 +968,7 @@ static int __devexit dnet_remove(struct platform_device *pdev)
968 968
969static struct platform_driver dnet_driver = { 969static struct platform_driver dnet_driver = {
970 .probe = dnet_probe, 970 .probe = dnet_probe,
971 .remove = __devexit_p(dnet_remove), 971 .remove = dnet_remove,
972 .driver = { 972 .driver = {
973 .name = "dnet", 973 .name = "dnet",
974 }, 974 },
diff --git a/drivers/net/ethernet/ethoc.c b/drivers/net/ethernet/ethoc.c
index 94b7bfcdb24e..8db1c06008de 100644
--- a/drivers/net/ethernet/ethoc.c
+++ b/drivers/net/ethernet/ethoc.c
@@ -665,7 +665,7 @@ static void ethoc_mdio_poll(struct net_device *dev)
665{ 665{
666} 666}
667 667
668static int __devinit ethoc_mdio_probe(struct net_device *dev) 668static int ethoc_mdio_probe(struct net_device *dev)
669{ 669{
670 struct ethoc *priv = netdev_priv(dev); 670 struct ethoc *priv = netdev_priv(dev);
671 struct phy_device *phy; 671 struct phy_device *phy;
@@ -905,7 +905,7 @@ static const struct net_device_ops ethoc_netdev_ops = {
905 * ethoc_probe - initialize OpenCores ethernet MAC 905 * ethoc_probe - initialize OpenCores ethernet MAC
906 * pdev: platform device 906 * pdev: platform device
907 */ 907 */
908static int __devinit ethoc_probe(struct platform_device *pdev) 908static int ethoc_probe(struct platform_device *pdev)
909{ 909{
910 struct net_device *netdev = NULL; 910 struct net_device *netdev = NULL;
911 struct resource *res = NULL; 911 struct resource *res = NULL;
@@ -1143,7 +1143,7 @@ out:
1143 * ethoc_remove - shutdown OpenCores ethernet MAC 1143 * ethoc_remove - shutdown OpenCores ethernet MAC
1144 * @pdev: platform device 1144 * @pdev: platform device
1145 */ 1145 */
1146static int __devexit ethoc_remove(struct platform_device *pdev) 1146static int ethoc_remove(struct platform_device *pdev)
1147{ 1147{
1148 struct net_device *netdev = platform_get_drvdata(pdev); 1148 struct net_device *netdev = platform_get_drvdata(pdev);
1149 struct ethoc *priv = netdev_priv(netdev); 1149 struct ethoc *priv = netdev_priv(netdev);
@@ -1190,7 +1190,7 @@ MODULE_DEVICE_TABLE(of, ethoc_match);
1190 1190
1191static struct platform_driver ethoc_driver = { 1191static struct platform_driver ethoc_driver = {
1192 .probe = ethoc_probe, 1192 .probe = ethoc_probe,
1193 .remove = __devexit_p(ethoc_remove), 1193 .remove = ethoc_remove,
1194 .suspend = ethoc_suspend, 1194 .suspend = ethoc_suspend,
1195 .resume = ethoc_resume, 1195 .resume = ethoc_resume,
1196 .driver = { 1196 .driver = {
diff --git a/drivers/net/ethernet/fealnx.c b/drivers/net/ethernet/fealnx.c
index 0e4a0ac86aa8..519c2895e8f7 100644
--- a/drivers/net/ethernet/fealnx.c
+++ b/drivers/net/ethernet/fealnx.c
@@ -92,7 +92,7 @@ static int full_duplex[MAX_UNITS] = { -1, -1, -1, -1, -1, -1, -1, -1 };
92#include <asm/byteorder.h> 92#include <asm/byteorder.h>
93 93
94/* These identify the driver base version and may not be removed. */ 94/* These identify the driver base version and may not be removed. */
95static const char version[] __devinitconst = 95static const char version[] =
96 KERN_INFO DRV_NAME ".c:v" DRV_VERSION " " DRV_RELDATE "\n"; 96 KERN_INFO DRV_NAME ".c:v" DRV_VERSION " " DRV_RELDATE "\n";
97 97
98 98
@@ -150,7 +150,7 @@ struct chip_info {
150 int flags; 150 int flags;
151}; 151};
152 152
153static const struct chip_info skel_netdrv_tbl[] __devinitconst = { 153static const struct chip_info skel_netdrv_tbl[] = {
154 { "100/10M Ethernet PCI Adapter", HAS_MII_XCVR }, 154 { "100/10M Ethernet PCI Adapter", HAS_MII_XCVR },
155 { "100/10M Ethernet PCI Adapter", HAS_CHIP_XCVR }, 155 { "100/10M Ethernet PCI Adapter", HAS_CHIP_XCVR },
156 { "1000/100/10M Ethernet PCI Adapter", HAS_MII_XCVR }, 156 { "1000/100/10M Ethernet PCI Adapter", HAS_MII_XCVR },
@@ -477,7 +477,7 @@ static const struct net_device_ops netdev_ops = {
477 .ndo_validate_addr = eth_validate_addr, 477 .ndo_validate_addr = eth_validate_addr,
478}; 478};
479 479
480static int __devinit fealnx_init_one(struct pci_dev *pdev, 480static int fealnx_init_one(struct pci_dev *pdev,
481 const struct pci_device_id *ent) 481 const struct pci_device_id *ent)
482{ 482{
483 struct netdev_private *np; 483 struct netdev_private *np;
@@ -684,7 +684,7 @@ err_out_res:
684} 684}
685 685
686 686
687static void __devexit fealnx_remove_one(struct pci_dev *pdev) 687static void fealnx_remove_one(struct pci_dev *pdev)
688{ 688{
689 struct net_device *dev = pci_get_drvdata(pdev); 689 struct net_device *dev = pci_get_drvdata(pdev);
690 690
@@ -1950,7 +1950,7 @@ static struct pci_driver fealnx_driver = {
1950 .name = "fealnx", 1950 .name = "fealnx",
1951 .id_table = fealnx_pci_tbl, 1951 .id_table = fealnx_pci_tbl,
1952 .probe = fealnx_init_one, 1952 .probe = fealnx_init_one,
1953 .remove = __devexit_p(fealnx_remove_one), 1953 .remove = fealnx_remove_one,
1954}; 1954};
1955 1955
1956static int __init fealnx_init(void) 1956static int __init fealnx_init(void)
diff --git a/drivers/net/ethernet/lantiq_etop.c b/drivers/net/ethernet/lantiq_etop.c
index 003c5bc7189f..c124e67a1a1c 100644
--- a/drivers/net/ethernet/lantiq_etop.c
+++ b/drivers/net/ethernet/lantiq_etop.c
@@ -774,7 +774,7 @@ err_out:
774 return err; 774 return err;
775} 775}
776 776
777static int __devexit 777static int
778ltq_etop_remove(struct platform_device *pdev) 778ltq_etop_remove(struct platform_device *pdev)
779{ 779{
780 struct net_device *dev = platform_get_drvdata(pdev); 780 struct net_device *dev = platform_get_drvdata(pdev);
@@ -789,7 +789,7 @@ ltq_etop_remove(struct platform_device *pdev)
789} 789}
790 790
791static struct platform_driver ltq_mii_driver = { 791static struct platform_driver ltq_mii_driver = {
792 .remove = __devexit_p(ltq_etop_remove), 792 .remove = ltq_etop_remove,
793 .driver = { 793 .driver = {
794 .name = "ltq_etop", 794 .name = "ltq_etop",
795 .owner = THIS_MODULE, 795 .owner = THIS_MODULE,
diff --git a/drivers/net/ethernet/s6gmac.c b/drivers/net/ethernet/s6gmac.c
index 2ed3ab4b3c2d..72fc57dd084d 100644
--- a/drivers/net/ethernet/s6gmac.c
+++ b/drivers/net/ethernet/s6gmac.c
@@ -954,7 +954,7 @@ static struct net_device_stats *s6gmac_stats(struct net_device *dev)
954 return st; 954 return st;
955} 955}
956 956
957static int __devinit s6gmac_probe(struct platform_device *pdev) 957static int s6gmac_probe(struct platform_device *pdev)
958{ 958{
959 struct net_device *dev; 959 struct net_device *dev;
960 struct s6gmac *pd; 960 struct s6gmac *pd;
@@ -1030,7 +1030,7 @@ errirq:
1030 return res; 1030 return res;
1031} 1031}
1032 1032
1033static int __devexit s6gmac_remove(struct platform_device *pdev) 1033static int s6gmac_remove(struct platform_device *pdev)
1034{ 1034{
1035 struct net_device *dev = platform_get_drvdata(pdev); 1035 struct net_device *dev = platform_get_drvdata(pdev);
1036 if (dev) { 1036 if (dev) {
@@ -1046,7 +1046,7 @@ static int __devexit s6gmac_remove(struct platform_device *pdev)
1046 1046
1047static struct platform_driver s6gmac_driver = { 1047static struct platform_driver s6gmac_driver = {
1048 .probe = s6gmac_probe, 1048 .probe = s6gmac_probe,
1049 .remove = __devexit_p(s6gmac_remove), 1049 .remove = s6gmac_remove,
1050 .driver = { 1050 .driver = {
1051 .name = "s6gmac", 1051 .name = "s6gmac",
1052 .owner = THIS_MODULE, 1052 .owner = THIS_MODULE,