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

bnx2: 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>
Cc: Michael Chan <mchan@broadcom.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 23971887
...@@ -71,7 +71,7 @@ ...@@ -71,7 +71,7 @@
/* Time in jiffies before concluding the transmitter is hung. */ /* Time in jiffies before concluding the transmitter is hung. */
#define TX_TIMEOUT (5*HZ) #define TX_TIMEOUT (5*HZ)
static char version[] __devinitdata = static char version[] =
"Broadcom NetXtreme II Gigabit Ethernet Driver " DRV_MODULE_NAME " v" DRV_MODULE_VERSION " (" DRV_MODULE_RELDATE ")\n"; "Broadcom NetXtreme II Gigabit Ethernet Driver " DRV_MODULE_NAME " v" DRV_MODULE_VERSION " (" DRV_MODULE_RELDATE ")\n";
MODULE_AUTHOR("Michael Chan <mchan@broadcom.com>"); MODULE_AUTHOR("Michael Chan <mchan@broadcom.com>");
...@@ -106,7 +106,7 @@ typedef enum { ...@@ -106,7 +106,7 @@ typedef enum {
/* indexed by board_t, above */ /* indexed by board_t, above */
static struct { static struct {
char *name; char *name;
} board_info[] __devinitdata = { } board_info[] = {
{ "Broadcom NetXtreme II BCM5706 1000Base-T" }, { "Broadcom NetXtreme II BCM5706 1000Base-T" },
{ "HP NC370T Multifunction Gigabit Server Adapter" }, { "HP NC370T Multifunction Gigabit Server Adapter" },
{ "HP NC370i Multifunction Gigabit Server Adapter" }, { "HP NC370i Multifunction Gigabit Server Adapter" },
...@@ -7896,7 +7896,7 @@ poll_bnx2(struct net_device *dev) ...@@ -7896,7 +7896,7 @@ poll_bnx2(struct net_device *dev)
} }
#endif #endif
static void __devinit static void
bnx2_get_5709_media(struct bnx2 *bp) bnx2_get_5709_media(struct bnx2 *bp)
{ {
u32 val = REG_RD(bp, BNX2_MISC_DUAL_MEDIA_CTRL); u32 val = REG_RD(bp, BNX2_MISC_DUAL_MEDIA_CTRL);
...@@ -7934,7 +7934,7 @@ bnx2_get_5709_media(struct bnx2 *bp) ...@@ -7934,7 +7934,7 @@ bnx2_get_5709_media(struct bnx2 *bp)
} }
} }
static void __devinit static void
bnx2_get_pci_speed(struct bnx2 *bp) bnx2_get_pci_speed(struct bnx2 *bp)
{ {
u32 reg; u32 reg;
...@@ -7986,7 +7986,7 @@ bnx2_get_pci_speed(struct bnx2 *bp) ...@@ -7986,7 +7986,7 @@ bnx2_get_pci_speed(struct bnx2 *bp)
} }
static void __devinit static void
bnx2_read_vpd_fw_ver(struct bnx2 *bp) bnx2_read_vpd_fw_ver(struct bnx2 *bp)
{ {
int rc, i, j; int rc, i, j;
...@@ -8054,7 +8054,7 @@ bnx2_read_vpd_fw_ver(struct bnx2 *bp) ...@@ -8054,7 +8054,7 @@ bnx2_read_vpd_fw_ver(struct bnx2 *bp)
kfree(data); kfree(data);
} }
static int __devinit static int
bnx2_init_board(struct pci_dev *pdev, struct net_device *dev) bnx2_init_board(struct pci_dev *pdev, struct net_device *dev)
{ {
struct bnx2 *bp; struct bnx2 *bp;
...@@ -8439,7 +8439,7 @@ bnx2_init_board(struct pci_dev *pdev, struct net_device *dev) ...@@ -8439,7 +8439,7 @@ bnx2_init_board(struct pci_dev *pdev, struct net_device *dev)
return rc; return rc;
} }
static char * __devinit static char *
bnx2_bus_string(struct bnx2 *bp, char *str) bnx2_bus_string(struct bnx2 *bp, char *str)
{ {
char *s = str; char *s = str;
...@@ -8505,7 +8505,7 @@ static const struct net_device_ops bnx2_netdev_ops = { ...@@ -8505,7 +8505,7 @@ static const struct net_device_ops bnx2_netdev_ops = {
#endif #endif
}; };
static int __devinit static int
bnx2_init_one(struct pci_dev *pdev, const struct pci_device_id *ent) bnx2_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
{ {
static int version_printed = 0; static int version_printed = 0;
...@@ -8573,7 +8573,7 @@ bnx2_init_one(struct pci_dev *pdev, const struct pci_device_id *ent) ...@@ -8573,7 +8573,7 @@ bnx2_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
return rc; return rc;
} }
static void __devexit static void
bnx2_remove_one(struct pci_dev *pdev) bnx2_remove_one(struct pci_dev *pdev)
{ {
struct net_device *dev = pci_get_drvdata(pdev); struct net_device *dev = pci_get_drvdata(pdev);
...@@ -8752,7 +8752,7 @@ static struct pci_driver bnx2_pci_driver = { ...@@ -8752,7 +8752,7 @@ static struct pci_driver bnx2_pci_driver = {
.name = DRV_MODULE_NAME, .name = DRV_MODULE_NAME,
.id_table = bnx2_pci_tbl, .id_table = bnx2_pci_tbl,
.probe = bnx2_init_one, .probe = bnx2_init_one,
.remove = __devexit_p(bnx2_remove_one), .remove = bnx2_remove_one,
.suspend = bnx2_suspend, .suspend = bnx2_suspend,
.resume = bnx2_resume, .resume = bnx2_resume,
.err_handler = &bnx2_err_handler, .err_handler = &bnx2_err_handler,
......
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