Commit 64bc40de authored by Bill Pemberton's avatar Bill Pemberton Committed by Greg Kroah-Hartman

dlink: 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: default avatarBill Pemberton <wfp5p@virginia.edu>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 6b6a3e7f
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
#define dr16(reg) ioread16(ioaddr + (reg)) #define dr16(reg) ioread16(ioaddr + (reg))
#define dr8(reg) ioread8(ioaddr + (reg)) #define dr8(reg) ioread8(ioaddr + (reg))
static char version[] __devinitdata = static char version[] =
KERN_INFO DRV_NAME " " DRV_VERSION " " DRV_RELDATE "\n"; KERN_INFO DRV_NAME " " DRV_VERSION " " DRV_RELDATE "\n";
#define MAX_UNITS 8 #define MAX_UNITS 8
static int mtu[MAX_UNITS]; static int mtu[MAX_UNITS];
...@@ -110,7 +110,7 @@ static const struct net_device_ops netdev_ops = { ...@@ -110,7 +110,7 @@ static const struct net_device_ops netdev_ops = {
.ndo_change_mtu = change_mtu, .ndo_change_mtu = change_mtu,
}; };
static int __devinit static int
rio_probe1 (struct pci_dev *pdev, const struct pci_device_id *ent) rio_probe1 (struct pci_dev *pdev, const struct pci_device_id *ent)
{ {
struct net_device *dev; struct net_device *dev;
...@@ -1727,7 +1727,7 @@ rio_close (struct net_device *dev) ...@@ -1727,7 +1727,7 @@ rio_close (struct net_device *dev)
return 0; return 0;
} }
static void __devexit static void
rio_remove1 (struct pci_dev *pdev) rio_remove1 (struct pci_dev *pdev)
{ {
struct net_device *dev = pci_get_drvdata (pdev); struct net_device *dev = pci_get_drvdata (pdev);
...@@ -1755,7 +1755,7 @@ static struct pci_driver rio_driver = { ...@@ -1755,7 +1755,7 @@ static struct pci_driver rio_driver = {
.name = "dl2k", .name = "dl2k",
.id_table = rio_pci_tbl, .id_table = rio_pci_tbl,
.probe = rio_probe1, .probe = rio_probe1,
.remove = __devexit_p(rio_remove1), .remove = rio_remove1,
}; };
module_pci_driver(rio_driver); module_pci_driver(rio_driver);
......
...@@ -102,7 +102,7 @@ static char *media[MAX_UNITS]; ...@@ -102,7 +102,7 @@ static char *media[MAX_UNITS];
#include <linux/mii.h> #include <linux/mii.h>
/* These identify the driver base version and may not be removed. */ /* These identify the driver base version and may not be removed. */
static const char version[] __devinitconst = static const char version[] =
KERN_INFO DRV_NAME ".c:v" DRV_VERSION " " DRV_RELDATE KERN_INFO DRV_NAME ".c:v" DRV_VERSION " " DRV_RELDATE
" Written by Donald Becker\n"; " Written by Donald Becker\n";
...@@ -218,7 +218,7 @@ enum { ...@@ -218,7 +218,7 @@ enum {
struct pci_id_info { struct pci_id_info {
const char *name; const char *name;
}; };
static const struct pci_id_info pci_id_tbl[] __devinitconst = { static const struct pci_id_info pci_id_tbl[] = {
{"D-Link DFE-550TX FAST Ethernet Adapter"}, {"D-Link DFE-550TX FAST Ethernet Adapter"},
{"D-Link DFE-550FX 100Mbps Fiber-optics Adapter"}, {"D-Link DFE-550FX 100Mbps Fiber-optics Adapter"},
{"D-Link DFE-580TX 4 port Server Adapter"}, {"D-Link DFE-580TX 4 port Server Adapter"},
...@@ -472,8 +472,8 @@ static const struct net_device_ops netdev_ops = { ...@@ -472,8 +472,8 @@ static const struct net_device_ops netdev_ops = {
.ndo_validate_addr = eth_validate_addr, .ndo_validate_addr = eth_validate_addr,
}; };
static int __devinit sundance_probe1 (struct pci_dev *pdev, static int sundance_probe1(struct pci_dev *pdev,
const struct pci_device_id *ent) const struct pci_device_id *ent)
{ {
struct net_device *dev; struct net_device *dev;
struct netdev_private *np; struct netdev_private *np;
...@@ -701,7 +701,7 @@ static int change_mtu(struct net_device *dev, int new_mtu) ...@@ -701,7 +701,7 @@ static int change_mtu(struct net_device *dev, int new_mtu)
#define eeprom_delay(ee_addr) ioread32(ee_addr) #define eeprom_delay(ee_addr) ioread32(ee_addr)
/* Read the EEPROM and MII Management Data I/O (MDIO) interfaces. */ /* Read the EEPROM and MII Management Data I/O (MDIO) interfaces. */
static int __devinit eeprom_read(void __iomem *ioaddr, int location) static int eeprom_read(void __iomem *ioaddr, int location)
{ {
int boguscnt = 10000; /* Typical 1900 ticks. */ int boguscnt = 10000; /* Typical 1900 ticks. */
iowrite16(0x0200 | (location & 0xff), ioaddr + EECtrl); iowrite16(0x0200 | (location & 0xff), ioaddr + EECtrl);
...@@ -1844,7 +1844,7 @@ static int netdev_close(struct net_device *dev) ...@@ -1844,7 +1844,7 @@ static int netdev_close(struct net_device *dev)
return 0; return 0;
} }
static void __devexit sundance_remove1 (struct pci_dev *pdev) static void sundance_remove1(struct pci_dev *pdev)
{ {
struct net_device *dev = pci_get_drvdata(pdev); struct net_device *dev = pci_get_drvdata(pdev);
...@@ -1910,7 +1910,7 @@ static struct pci_driver sundance_driver = { ...@@ -1910,7 +1910,7 @@ static struct pci_driver sundance_driver = {
.name = DRV_NAME, .name = DRV_NAME,
.id_table = sundance_pci_tbl, .id_table = sundance_pci_tbl,
.probe = sundance_probe1, .probe = sundance_probe1,
.remove = __devexit_p(sundance_remove1), .remove = sundance_remove1,
#ifdef CONFIG_PM #ifdef CONFIG_PM
.suspend = sundance_suspend, .suspend = sundance_suspend,
.resume = sundance_resume, .resume = sundance_resume,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment