Skip to content

Commit

Permalink
bnx2: remove __dev* attributes
Browse files Browse the repository at this point in the history
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: Bill Pemberton <wfp5p@virginia.edu>
Cc: Michael Chan <mchan@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Bill Pemberton authored and Greg Kroah-Hartman committed Dec 3, 2012
1 parent 2397188 commit cfd95a6
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions drivers/net/ethernet/broadcom/bnx2.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
/* Time in jiffies before concluding the transmitter is hung. */
#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";

MODULE_AUTHOR("Michael Chan <mchan@broadcom.com>");
Expand Down Expand Up @@ -106,7 +106,7 @@ typedef enum {
/* indexed by board_t, above */
static struct {
char *name;
} board_info[] __devinitdata = {
} board_info[] = {
{ "Broadcom NetXtreme II BCM5706 1000Base-T" },
{ "HP NC370T Multifunction Gigabit Server Adapter" },
{ "HP NC370i Multifunction Gigabit Server Adapter" },
Expand Down Expand Up @@ -7896,7 +7896,7 @@ poll_bnx2(struct net_device *dev)
}
#endif

static void __devinit
static void
bnx2_get_5709_media(struct bnx2 *bp)
{
u32 val = REG_RD(bp, BNX2_MISC_DUAL_MEDIA_CTRL);
Expand Down Expand Up @@ -7934,7 +7934,7 @@ bnx2_get_5709_media(struct bnx2 *bp)
}
}

static void __devinit
static void
bnx2_get_pci_speed(struct bnx2 *bp)
{
u32 reg;
Expand Down Expand Up @@ -7986,7 +7986,7 @@ bnx2_get_pci_speed(struct bnx2 *bp)

}

static void __devinit
static void
bnx2_read_vpd_fw_ver(struct bnx2 *bp)
{
int rc, i, j;
Expand Down Expand Up @@ -8054,7 +8054,7 @@ bnx2_read_vpd_fw_ver(struct bnx2 *bp)
kfree(data);
}

static int __devinit
static int
bnx2_init_board(struct pci_dev *pdev, struct net_device *dev)
{
struct bnx2 *bp;
Expand Down Expand Up @@ -8439,7 +8439,7 @@ bnx2_init_board(struct pci_dev *pdev, struct net_device *dev)
return rc;
}

static char * __devinit
static char *
bnx2_bus_string(struct bnx2 *bp, char *str)
{
char *s = str;
Expand Down Expand Up @@ -8505,7 +8505,7 @@ static const struct net_device_ops bnx2_netdev_ops = {
#endif
};

static int __devinit
static int
bnx2_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
{
static int version_printed = 0;
Expand Down Expand Up @@ -8573,7 +8573,7 @@ bnx2_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
return rc;
}

static void __devexit
static void
bnx2_remove_one(struct pci_dev *pdev)
{
struct net_device *dev = pci_get_drvdata(pdev);
Expand Down Expand Up @@ -8752,7 +8752,7 @@ static struct pci_driver bnx2_pci_driver = {
.name = DRV_MODULE_NAME,
.id_table = bnx2_pci_tbl,
.probe = bnx2_init_one,
.remove = __devexit_p(bnx2_remove_one),
.remove = bnx2_remove_one,
.suspend = bnx2_suspend,
.resume = bnx2_resume,
.err_handler = &bnx2_err_handler,
Expand Down

0 comments on commit cfd95a6

Please sign in to comment.