提交 134c1f15 编写于 作者: B Bill Pemberton 提交者: Greg Kroah-Hartman

packetengines: 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: NBill Pemberton <wfp5p@virginia.edu>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 5bc7ec70
...@@ -166,7 +166,7 @@ static int tx_params[MAX_UNITS] = {-1, -1, -1, -1, -1, -1, -1, -1}; ...@@ -166,7 +166,7 @@ static int tx_params[MAX_UNITS] = {-1, -1, -1, -1, -1, -1, -1, -1};
#include <asm/unaligned.h> #include <asm/unaligned.h>
#include <asm/cache.h> #include <asm/cache.h>
static const char version[] __devinitconst = static const char version[] =
KERN_INFO DRV_NAME ".c:v" DRV_VERSION " " DRV_RELDATE " Written by Donald Becker\n" KERN_INFO DRV_NAME ".c:v" DRV_VERSION " " DRV_RELDATE " Written by Donald Becker\n"
" Some modifications by Eric kasten <kasten@nscl.msu.edu>\n" " Some modifications by Eric kasten <kasten@nscl.msu.edu>\n"
" Further modifications by Keith Underwood <keithu@parl.clemson.edu>\n"; " Further modifications by Keith Underwood <keithu@parl.clemson.edu>\n";
...@@ -576,7 +576,7 @@ static const struct net_device_ops hamachi_netdev_ops = { ...@@ -576,7 +576,7 @@ static const struct net_device_ops hamachi_netdev_ops = {
}; };
static int __devinit hamachi_init_one (struct pci_dev *pdev, static int hamachi_init_one(struct pci_dev *pdev,
const struct pci_device_id *ent) const struct pci_device_id *ent)
{ {
struct hamachi_private *hmp; struct hamachi_private *hmp;
...@@ -791,7 +791,7 @@ static int __devinit hamachi_init_one (struct pci_dev *pdev, ...@@ -791,7 +791,7 @@ static int __devinit hamachi_init_one (struct pci_dev *pdev,
return ret; return ret;
} }
static int __devinit read_eeprom(void __iomem *ioaddr, int location) static int read_eeprom(void __iomem *ioaddr, int location)
{ {
int bogus_cnt = 1000; int bogus_cnt = 1000;
...@@ -1894,7 +1894,7 @@ static int netdev_ioctl(struct net_device *dev, struct ifreq *rq, int cmd) ...@@ -1894,7 +1894,7 @@ static int netdev_ioctl(struct net_device *dev, struct ifreq *rq, int cmd)
} }
static void __devexit hamachi_remove_one (struct pci_dev *pdev) static void hamachi_remove_one(struct pci_dev *pdev)
{ {
struct net_device *dev = pci_get_drvdata(pdev); struct net_device *dev = pci_get_drvdata(pdev);
...@@ -1923,7 +1923,7 @@ static struct pci_driver hamachi_driver = { ...@@ -1923,7 +1923,7 @@ static struct pci_driver hamachi_driver = {
.name = DRV_NAME, .name = DRV_NAME,
.id_table = hamachi_pci_tbl, .id_table = hamachi_pci_tbl,
.probe = hamachi_init_one, .probe = hamachi_init_one,
.remove = __devexit_p(hamachi_remove_one), .remove = hamachi_remove_one,
}; };
static int __init hamachi_init (void) static int __init hamachi_init (void)
......
...@@ -106,7 +106,7 @@ static int gx_fix; ...@@ -106,7 +106,7 @@ static int gx_fix;
#include <asm/io.h> #include <asm/io.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:v1.05 1/09/2001 Written by Donald Becker <becker@scyld.com>\n" KERN_INFO DRV_NAME ".c:v1.05 1/09/2001 Written by Donald Becker <becker@scyld.com>\n"
" (unofficial 2.4.x port, " DRV_VERSION ", " DRV_RELDATE ")\n"; " (unofficial 2.4.x port, " DRV_VERSION ", " DRV_RELDATE ")\n";
...@@ -367,7 +367,7 @@ static const struct net_device_ops netdev_ops = { ...@@ -367,7 +367,7 @@ static const struct net_device_ops netdev_ops = {
.ndo_tx_timeout = yellowfin_tx_timeout, .ndo_tx_timeout = yellowfin_tx_timeout,
}; };
static int __devinit yellowfin_init_one(struct pci_dev *pdev, static int yellowfin_init_one(struct pci_dev *pdev,
const struct pci_device_id *ent) const struct pci_device_id *ent)
{ {
struct net_device *dev; struct net_device *dev;
...@@ -522,7 +522,7 @@ static int __devinit yellowfin_init_one(struct pci_dev *pdev, ...@@ -522,7 +522,7 @@ static int __devinit yellowfin_init_one(struct pci_dev *pdev,
return -ENODEV; return -ENODEV;
} }
static int __devinit read_eeprom(void __iomem *ioaddr, int location) static int read_eeprom(void __iomem *ioaddr, int location)
{ {
int bogus_cnt = 10000; /* Typical 33Mhz: 1050 ticks */ int bogus_cnt = 10000; /* Typical 33Mhz: 1050 ticks */
...@@ -1372,7 +1372,7 @@ static int netdev_ioctl(struct net_device *dev, struct ifreq *rq, int cmd) ...@@ -1372,7 +1372,7 @@ static int netdev_ioctl(struct net_device *dev, struct ifreq *rq, int cmd)
} }
static void __devexit yellowfin_remove_one (struct pci_dev *pdev) static void yellowfin_remove_one(struct pci_dev *pdev)
{ {
struct net_device *dev = pci_get_drvdata(pdev); struct net_device *dev = pci_get_drvdata(pdev);
struct yellowfin_private *np; struct yellowfin_private *np;
...@@ -1399,7 +1399,7 @@ static struct pci_driver yellowfin_driver = { ...@@ -1399,7 +1399,7 @@ static struct pci_driver yellowfin_driver = {
.name = DRV_NAME, .name = DRV_NAME,
.id_table = yellowfin_pci_tbl, .id_table = yellowfin_pci_tbl,
.probe = yellowfin_init_one, .probe = yellowfin_init_one,
.remove = __devexit_p(yellowfin_remove_one), .remove = yellowfin_remove_one,
}; };
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册