diff options
| author | David S. Miller <davem@davemloft.net> | 2012-12-03 15:35:28 -0500 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2012-12-03 15:35:28 -0500 |
| commit | 682d7978aee072f411fc747d32954a8371dd7b1b (patch) | |
| tree | eeda0abd33caeb14d0adbc5ffd2a9a8cbb4b2ac8 /drivers/net/ethernet/dlink | |
| parent | a5a81f0b9025867efb999d14a8dfc1907c5a4c3b (diff) | |
| parent | 9f9a12f8ca79839c948464a37c5b557808278708 (diff) | |
Merge tag 'dev_removal' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/net-next
Networking: Remove __dev* markings from the networking drivers
This is a series of patches that remove the dev* attributes for all
networking drivers, with the exception of wireless drivers, those are in
a different branch.
Use of __devinit, __devexit_p, __devinitdata, __devinitconst, and
__devexit are no longer needed since CONFIG_HOTPLUG is being removed as
an option.
Note, there are some devinit compiler section mismatch warnings due to
this series, but they are fixed up when merged with my driver-next
branch, which fixes the PCI device id warnings, and removes the modpost
detection, as it's no longer needed.
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/dlink')
| -rw-r--r-- | drivers/net/ethernet/dlink/dl2k.c | 8 | ||||
| -rw-r--r-- | drivers/net/ethernet/dlink/sundance.c | 14 |
2 files changed, 11 insertions, 11 deletions
diff --git a/drivers/net/ethernet/dlink/dl2k.c b/drivers/net/ethernet/dlink/dl2k.c index 2fb01bf1815..1d342d37915 100644 --- a/drivers/net/ethernet/dlink/dl2k.c +++ b/drivers/net/ethernet/dlink/dl2k.c | |||
| @@ -23,7 +23,7 @@ | |||
| 23 | #define dr16(reg) ioread16(ioaddr + (reg)) | 23 | #define dr16(reg) ioread16(ioaddr + (reg)) |
| 24 | #define dr8(reg) ioread8(ioaddr + (reg)) | 24 | #define dr8(reg) ioread8(ioaddr + (reg)) |
| 25 | 25 | ||
| 26 | static char version[] __devinitdata = | 26 | static char version[] = |
| 27 | KERN_INFO DRV_NAME " " DRV_VERSION " " DRV_RELDATE "\n"; | 27 | KERN_INFO DRV_NAME " " DRV_VERSION " " DRV_RELDATE "\n"; |
| 28 | #define MAX_UNITS 8 | 28 | #define MAX_UNITS 8 |
| 29 | static int mtu[MAX_UNITS]; | 29 | static int mtu[MAX_UNITS]; |
| @@ -110,7 +110,7 @@ static const struct net_device_ops netdev_ops = { | |||
| 110 | .ndo_change_mtu = change_mtu, | 110 | .ndo_change_mtu = change_mtu, |
| 111 | }; | 111 | }; |
| 112 | 112 | ||
| 113 | static int __devinit | 113 | static int |
| 114 | rio_probe1 (struct pci_dev *pdev, const struct pci_device_id *ent) | 114 | rio_probe1 (struct pci_dev *pdev, const struct pci_device_id *ent) |
| 115 | { | 115 | { |
| 116 | struct net_device *dev; | 116 | struct net_device *dev; |
| @@ -1727,7 +1727,7 @@ rio_close (struct net_device *dev) | |||
| 1727 | return 0; | 1727 | return 0; |
| 1728 | } | 1728 | } |
| 1729 | 1729 | ||
| 1730 | static void __devexit | 1730 | static void |
| 1731 | rio_remove1 (struct pci_dev *pdev) | 1731 | rio_remove1 (struct pci_dev *pdev) |
| 1732 | { | 1732 | { |
| 1733 | struct net_device *dev = pci_get_drvdata (pdev); | 1733 | struct net_device *dev = pci_get_drvdata (pdev); |
| @@ -1755,7 +1755,7 @@ static struct pci_driver rio_driver = { | |||
| 1755 | .name = "dl2k", | 1755 | .name = "dl2k", |
| 1756 | .id_table = rio_pci_tbl, | 1756 | .id_table = rio_pci_tbl, |
| 1757 | .probe = rio_probe1, | 1757 | .probe = rio_probe1, |
| 1758 | .remove = __devexit_p(rio_remove1), | 1758 | .remove = rio_remove1, |
| 1759 | }; | 1759 | }; |
| 1760 | 1760 | ||
| 1761 | module_pci_driver(rio_driver); | 1761 | module_pci_driver(rio_driver); |
diff --git a/drivers/net/ethernet/dlink/sundance.c b/drivers/net/ethernet/dlink/sundance.c index bbeb4c7a85b..28fc11b2f1e 100644 --- a/drivers/net/ethernet/dlink/sundance.c +++ b/drivers/net/ethernet/dlink/sundance.c | |||
| @@ -102,7 +102,7 @@ static char *media[MAX_UNITS]; | |||
| 102 | #include <linux/mii.h> | 102 | #include <linux/mii.h> |
| 103 | 103 | ||
| 104 | /* These identify the driver base version and may not be removed. */ | 104 | /* These identify the driver base version and may not be removed. */ |
| 105 | static const char version[] __devinitconst = | 105 | static const char version[] = |
| 106 | KERN_INFO DRV_NAME ".c:v" DRV_VERSION " " DRV_RELDATE | 106 | KERN_INFO DRV_NAME ".c:v" DRV_VERSION " " DRV_RELDATE |
| 107 | " Written by Donald Becker\n"; | 107 | " Written by Donald Becker\n"; |
| 108 | 108 | ||
| @@ -218,7 +218,7 @@ enum { | |||
| 218 | struct pci_id_info { | 218 | struct pci_id_info { |
| 219 | const char *name; | 219 | const char *name; |
| 220 | }; | 220 | }; |
| 221 | static const struct pci_id_info pci_id_tbl[] __devinitconst = { | 221 | static const struct pci_id_info pci_id_tbl[] = { |
| 222 | {"D-Link DFE-550TX FAST Ethernet Adapter"}, | 222 | {"D-Link DFE-550TX FAST Ethernet Adapter"}, |
| 223 | {"D-Link DFE-550FX 100Mbps Fiber-optics Adapter"}, | 223 | {"D-Link DFE-550FX 100Mbps Fiber-optics Adapter"}, |
| 224 | {"D-Link DFE-580TX 4 port Server Adapter"}, | 224 | {"D-Link DFE-580TX 4 port Server Adapter"}, |
| @@ -482,8 +482,8 @@ static const struct net_device_ops netdev_ops = { | |||
| 482 | .ndo_validate_addr = eth_validate_addr, | 482 | .ndo_validate_addr = eth_validate_addr, |
| 483 | }; | 483 | }; |
| 484 | 484 | ||
| 485 | static int __devinit sundance_probe1 (struct pci_dev *pdev, | 485 | static int sundance_probe1(struct pci_dev *pdev, |
| 486 | const struct pci_device_id *ent) | 486 | const struct pci_device_id *ent) |
| 487 | { | 487 | { |
| 488 | struct net_device *dev; | 488 | struct net_device *dev; |
| 489 | struct netdev_private *np; | 489 | struct netdev_private *np; |
| @@ -711,7 +711,7 @@ static int change_mtu(struct net_device *dev, int new_mtu) | |||
| 711 | 711 | ||
| 712 | #define eeprom_delay(ee_addr) ioread32(ee_addr) | 712 | #define eeprom_delay(ee_addr) ioread32(ee_addr) |
| 713 | /* Read the EEPROM and MII Management Data I/O (MDIO) interfaces. */ | 713 | /* Read the EEPROM and MII Management Data I/O (MDIO) interfaces. */ |
| 714 | static int __devinit eeprom_read(void __iomem *ioaddr, int location) | 714 | static int eeprom_read(void __iomem *ioaddr, int location) |
| 715 | { | 715 | { |
| 716 | int boguscnt = 10000; /* Typical 1900 ticks. */ | 716 | int boguscnt = 10000; /* Typical 1900 ticks. */ |
| 717 | iowrite16(0x0200 | (location & 0xff), ioaddr + EECtrl); | 717 | iowrite16(0x0200 | (location & 0xff), ioaddr + EECtrl); |
| @@ -1914,7 +1914,7 @@ static int netdev_close(struct net_device *dev) | |||
| 1914 | return 0; | 1914 | return 0; |
| 1915 | } | 1915 | } |
| 1916 | 1916 | ||
| 1917 | static void __devexit sundance_remove1 (struct pci_dev *pdev) | 1917 | static void sundance_remove1(struct pci_dev *pdev) |
| 1918 | { | 1918 | { |
| 1919 | struct net_device *dev = pci_get_drvdata(pdev); | 1919 | struct net_device *dev = pci_get_drvdata(pdev); |
| 1920 | 1920 | ||
| @@ -1989,7 +1989,7 @@ static struct pci_driver sundance_driver = { | |||
| 1989 | .name = DRV_NAME, | 1989 | .name = DRV_NAME, |
| 1990 | .id_table = sundance_pci_tbl, | 1990 | .id_table = sundance_pci_tbl, |
| 1991 | .probe = sundance_probe1, | 1991 | .probe = sundance_probe1, |
| 1992 | .remove = __devexit_p(sundance_remove1), | 1992 | .remove = sundance_remove1, |
| 1993 | #ifdef CONFIG_PM | 1993 | #ifdef CONFIG_PM |
| 1994 | .suspend = sundance_suspend, | 1994 | .suspend = sundance_suspend, |
| 1995 | .resume = sundance_resume, | 1995 | .resume = sundance_resume, |
