aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/net/ethernet/dlink/dl2k.c8
-rw-r--r--drivers/net/ethernet/dlink/sundance.c14
2 files changed, 11 insertions, 11 deletions
diff --git a/drivers/net/ethernet/dlink/dl2k.c b/drivers/net/ethernet/dlink/dl2k.c
index 2fb01bf18155..1d342d37915c 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
26static char version[] __devinitdata = 26static 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
29static int mtu[MAX_UNITS]; 29static 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
113static int __devinit 113static int
114rio_probe1 (struct pci_dev *pdev, const struct pci_device_id *ent) 114rio_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
1730static void __devexit 1730static void
1731rio_remove1 (struct pci_dev *pdev) 1731rio_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
1761module_pci_driver(rio_driver); 1761module_pci_driver(rio_driver);
diff --git a/drivers/net/ethernet/dlink/sundance.c b/drivers/net/ethernet/dlink/sundance.c
index 3b83588e51f6..2a5a5b0a5cae 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. */
105static const char version[] __devinitconst = 105static 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 {
218struct pci_id_info { 218struct pci_id_info {
219 const char *name; 219 const char *name;
220}; 220};
221static const struct pci_id_info pci_id_tbl[] __devinitconst = { 221static 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"},
@@ -472,8 +472,8 @@ static const struct net_device_ops netdev_ops = {
472 .ndo_validate_addr = eth_validate_addr, 472 .ndo_validate_addr = eth_validate_addr,
473}; 473};
474 474
475static int __devinit sundance_probe1 (struct pci_dev *pdev, 475static int sundance_probe1(struct pci_dev *pdev,
476 const struct pci_device_id *ent) 476 const struct pci_device_id *ent)
477{ 477{
478 struct net_device *dev; 478 struct net_device *dev;
479 struct netdev_private *np; 479 struct netdev_private *np;
@@ -701,7 +701,7 @@ static int change_mtu(struct net_device *dev, int new_mtu)
701 701
702#define eeprom_delay(ee_addr) ioread32(ee_addr) 702#define eeprom_delay(ee_addr) ioread32(ee_addr)
703/* Read the EEPROM and MII Management Data I/O (MDIO) interfaces. */ 703/* Read the EEPROM and MII Management Data I/O (MDIO) interfaces. */
704static int __devinit eeprom_read(void __iomem *ioaddr, int location) 704static int eeprom_read(void __iomem *ioaddr, int location)
705{ 705{
706 int boguscnt = 10000; /* Typical 1900 ticks. */ 706 int boguscnt = 10000; /* Typical 1900 ticks. */
707 iowrite16(0x0200 | (location & 0xff), ioaddr + EECtrl); 707 iowrite16(0x0200 | (location & 0xff), ioaddr + EECtrl);
@@ -1844,7 +1844,7 @@ static int netdev_close(struct net_device *dev)
1844 return 0; 1844 return 0;
1845} 1845}
1846 1846
1847static void __devexit sundance_remove1 (struct pci_dev *pdev) 1847static void sundance_remove1(struct pci_dev *pdev)
1848{ 1848{
1849 struct net_device *dev = pci_get_drvdata(pdev); 1849 struct net_device *dev = pci_get_drvdata(pdev);
1850 1850
@@ -1910,7 +1910,7 @@ static struct pci_driver sundance_driver = {
1910 .name = DRV_NAME, 1910 .name = DRV_NAME,
1911 .id_table = sundance_pci_tbl, 1911 .id_table = sundance_pci_tbl,
1912 .probe = sundance_probe1, 1912 .probe = sundance_probe1,
1913 .remove = __devexit_p(sundance_remove1), 1913 .remove = sundance_remove1,
1914#ifdef CONFIG_PM 1914#ifdef CONFIG_PM
1915 .suspend = sundance_suspend, 1915 .suspend = sundance_suspend,
1916 .resume = sundance_resume, 1916 .resume = sundance_resume,