aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Pemberton <wfp5p@virginia.edu>2012-12-03 09:24:24 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-12-03 14:17:07 -0500
commit0329aba13791ec256dacdfdc74eca8673f6dd2e8 (patch)
tree2fb311256cb229f50faac904ed96f37fa78f7b32
parent047fc56614f8f8d03fb64ef3be44f040aad25d56 (diff)
bnx2x: 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: Bill Pemberton <wfp5p@virginia.edu> Cc: Eilon Greenstein <eilong@broadcom.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c2
-rw-r--r--drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.h2
-rw-r--r--drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c66
3 files changed, 35 insertions, 35 deletions
diff --git a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c
index 5e07aa5e1aea..8ab1492cedd1 100644
--- a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c
+++ b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c
@@ -3875,7 +3875,7 @@ void bnx2x_free_mem_bp(struct bnx2x *bp)
3875 kfree(bp->ilt); 3875 kfree(bp->ilt);
3876} 3876}
3877 3877
3878int __devinit bnx2x_alloc_mem_bp(struct bnx2x *bp) 3878int bnx2x_alloc_mem_bp(struct bnx2x *bp)
3879{ 3879{
3880 struct bnx2x_fastpath *fp; 3880 struct bnx2x_fastpath *fp;
3881 struct msix_entry *tbl; 3881 struct msix_entry *tbl;
diff --git a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.h b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.h
index 32c3ab72718c..0991534f61da 100644
--- a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.h
+++ b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.h
@@ -563,7 +563,7 @@ int bnx2x_poll(struct napi_struct *napi, int budget);
563 * 563 *
564 * @bp: driver handle 564 * @bp: driver handle
565 */ 565 */
566int __devinit bnx2x_alloc_mem_bp(struct bnx2x *bp); 566int bnx2x_alloc_mem_bp(struct bnx2x *bp);
567 567
568/** 568/**
569 * bnx2x_free_mem_bp - release memories outsize main driver structure 569 * bnx2x_free_mem_bp - release memories outsize main driver structure
diff --git a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c
index c8ec3fcd2d35..d7b278c9b5d1 100644
--- a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c
+++ b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c
@@ -79,7 +79,7 @@
79/* Time in jiffies before concluding the transmitter is hung */ 79/* Time in jiffies before concluding the transmitter is hung */
80#define TX_TIMEOUT (5*HZ) 80#define TX_TIMEOUT (5*HZ)
81 81
82static char version[] __devinitdata = 82static char version[] =
83 "Broadcom NetXtreme II 5771x/578xx 10/20-Gigabit Ethernet Driver " 83 "Broadcom NetXtreme II 5771x/578xx 10/20-Gigabit Ethernet Driver "
84 DRV_MODULE_NAME " " DRV_MODULE_VERSION " (" DRV_MODULE_RELDATE ")\n"; 84 DRV_MODULE_NAME " " DRV_MODULE_VERSION " (" DRV_MODULE_RELDATE ")\n";
85 85
@@ -149,7 +149,7 @@ enum bnx2x_board_type {
149/* indexed by board_type, above */ 149/* indexed by board_type, above */
150static struct { 150static struct {
151 char *name; 151 char *name;
152} board_info[] __devinitdata = { 152} board_info[] = {
153 { "Broadcom NetXtreme II BCM57710 10 Gigabit PCIe [Everest]" }, 153 { "Broadcom NetXtreme II BCM57710 10 Gigabit PCIe [Everest]" },
154 { "Broadcom NetXtreme II BCM57711 10 Gigabit PCIe" }, 154 { "Broadcom NetXtreme II BCM57711 10 Gigabit PCIe" },
155 { "Broadcom NetXtreme II BCM57711E 10 Gigabit PCIe" }, 155 { "Broadcom NetXtreme II BCM57711E 10 Gigabit PCIe" },
@@ -9420,7 +9420,7 @@ static inline void bnx2x_undi_int_disable(struct bnx2x *bp)
9420 bnx2x_undi_int_disable_e1h(bp); 9420 bnx2x_undi_int_disable_e1h(bp);
9421} 9421}
9422 9422
9423static void __devinit bnx2x_prev_unload_close_mac(struct bnx2x *bp) 9423static void bnx2x_prev_unload_close_mac(struct bnx2x *bp)
9424{ 9424{
9425 u32 val, base_addr, offset, mask, reset_reg; 9425 u32 val, base_addr, offset, mask, reset_reg;
9426 bool mac_stopped = false; 9426 bool mac_stopped = false;
@@ -9487,7 +9487,7 @@ static void __devinit bnx2x_prev_unload_close_mac(struct bnx2x *bp)
9487#define BNX2X_PREV_UNDI_BD(val) ((val) >> 16 & 0xffff) 9487#define BNX2X_PREV_UNDI_BD(val) ((val) >> 16 & 0xffff)
9488#define BNX2X_PREV_UNDI_PROD(rcq, bd) ((bd) << 16 | (rcq)) 9488#define BNX2X_PREV_UNDI_PROD(rcq, bd) ((bd) << 16 | (rcq))
9489 9489
9490static void __devinit bnx2x_prev_unload_undi_inc(struct bnx2x *bp, u8 port, 9490static void bnx2x_prev_unload_undi_inc(struct bnx2x *bp, u8 port,
9491 u8 inc) 9491 u8 inc)
9492{ 9492{
9493 u16 rcq, bd; 9493 u16 rcq, bd;
@@ -9503,7 +9503,7 @@ static void __devinit bnx2x_prev_unload_undi_inc(struct bnx2x *bp, u8 port,
9503 port, bd, rcq); 9503 port, bd, rcq);
9504} 9504}
9505 9505
9506static int __devinit bnx2x_prev_mcp_done(struct bnx2x *bp) 9506static int bnx2x_prev_mcp_done(struct bnx2x *bp)
9507{ 9507{
9508 u32 rc = bnx2x_fw_command(bp, DRV_MSG_CODE_UNLOAD_DONE, 9508 u32 rc = bnx2x_fw_command(bp, DRV_MSG_CODE_UNLOAD_DONE,
9509 DRV_MSG_CODE_UNLOAD_SKIP_LINK_RESET); 9509 DRV_MSG_CODE_UNLOAD_SKIP_LINK_RESET);
@@ -9515,7 +9515,7 @@ static int __devinit bnx2x_prev_mcp_done(struct bnx2x *bp)
9515 return 0; 9515 return 0;
9516} 9516}
9517 9517
9518static bool __devinit bnx2x_prev_is_path_marked(struct bnx2x *bp) 9518static bool bnx2x_prev_is_path_marked(struct bnx2x *bp)
9519{ 9519{
9520 struct bnx2x_prev_path_list *tmp_list; 9520 struct bnx2x_prev_path_list *tmp_list;
9521 int rc = false; 9521 int rc = false;
@@ -9539,7 +9539,7 @@ static bool __devinit bnx2x_prev_is_path_marked(struct bnx2x *bp)
9539 return rc; 9539 return rc;
9540} 9540}
9541 9541
9542static int __devinit bnx2x_prev_mark_path(struct bnx2x *bp) 9542static int bnx2x_prev_mark_path(struct bnx2x *bp)
9543{ 9543{
9544 struct bnx2x_prev_path_list *tmp_list; 9544 struct bnx2x_prev_path_list *tmp_list;
9545 int rc; 9545 int rc;
@@ -9568,7 +9568,7 @@ static int __devinit bnx2x_prev_mark_path(struct bnx2x *bp)
9568 return rc; 9568 return rc;
9569} 9569}
9570 9570
9571static int __devinit bnx2x_do_flr(struct bnx2x *bp) 9571static int bnx2x_do_flr(struct bnx2x *bp)
9572{ 9572{
9573 int i; 9573 int i;
9574 u16 status; 9574 u16 status;
@@ -9608,7 +9608,7 @@ clear:
9608 return 0; 9608 return 0;
9609} 9609}
9610 9610
9611static int __devinit bnx2x_prev_unload_uncommon(struct bnx2x *bp) 9611static int bnx2x_prev_unload_uncommon(struct bnx2x *bp)
9612{ 9612{
9613 int rc; 9613 int rc;
9614 9614
@@ -9646,7 +9646,7 @@ static int __devinit bnx2x_prev_unload_uncommon(struct bnx2x *bp)
9646 return rc; 9646 return rc;
9647} 9647}
9648 9648
9649static int __devinit bnx2x_prev_unload_common(struct bnx2x *bp) 9649static int bnx2x_prev_unload_common(struct bnx2x *bp)
9650{ 9650{
9651 u32 reset_reg, tmp_reg = 0, rc; 9651 u32 reset_reg, tmp_reg = 0, rc;
9652 /* It is possible a previous function received 'common' answer, 9652 /* It is possible a previous function received 'common' answer,
@@ -9729,7 +9729,7 @@ static int __devinit bnx2x_prev_unload_common(struct bnx2x *bp)
9729 * to clear the interrupt which detected this from the pglueb and the was done 9729 * to clear the interrupt which detected this from the pglueb and the was done
9730 * bit 9730 * bit
9731 */ 9731 */
9732static void __devinit bnx2x_prev_interrupted_dmae(struct bnx2x *bp) 9732static void bnx2x_prev_interrupted_dmae(struct bnx2x *bp)
9733{ 9733{
9734 if (!CHIP_IS_E1x(bp)) { 9734 if (!CHIP_IS_E1x(bp)) {
9735 u32 val = REG_RD(bp, PGLUE_B_REG_PGLUE_B_INT_STS); 9735 u32 val = REG_RD(bp, PGLUE_B_REG_PGLUE_B_INT_STS);
@@ -9741,7 +9741,7 @@ static void __devinit bnx2x_prev_interrupted_dmae(struct bnx2x *bp)
9741 } 9741 }
9742} 9742}
9743 9743
9744static int __devinit bnx2x_prev_unload(struct bnx2x *bp) 9744static int bnx2x_prev_unload(struct bnx2x *bp)
9745{ 9745{
9746 int time_counter = 10; 9746 int time_counter = 10;
9747 u32 rc, fw, hw_lock_reg, hw_lock_val; 9747 u32 rc, fw, hw_lock_reg, hw_lock_val;
@@ -9808,7 +9808,7 @@ static int __devinit bnx2x_prev_unload(struct bnx2x *bp)
9808 return rc; 9808 return rc;
9809} 9809}
9810 9810
9811static void __devinit bnx2x_get_common_hwinfo(struct bnx2x *bp) 9811static void bnx2x_get_common_hwinfo(struct bnx2x *bp)
9812{ 9812{
9813 u32 val, val2, val3, val4, id, boot_mode; 9813 u32 val, val2, val3, val4, id, boot_mode;
9814 u16 pmc; 9814 u16 pmc;
@@ -9991,7 +9991,7 @@ static void __devinit bnx2x_get_common_hwinfo(struct bnx2x *bp)
9991#define IGU_FID(val) GET_FIELD((val), IGU_REG_MAPPING_MEMORY_FID) 9991#define IGU_FID(val) GET_FIELD((val), IGU_REG_MAPPING_MEMORY_FID)
9992#define IGU_VEC(val) GET_FIELD((val), IGU_REG_MAPPING_MEMORY_VECTOR) 9992#define IGU_VEC(val) GET_FIELD((val), IGU_REG_MAPPING_MEMORY_VECTOR)
9993 9993
9994static int __devinit bnx2x_get_igu_cam_info(struct bnx2x *bp) 9994static int bnx2x_get_igu_cam_info(struct bnx2x *bp)
9995{ 9995{
9996 int pfid = BP_FUNC(bp); 9996 int pfid = BP_FUNC(bp);
9997 int igu_sb_id; 9997 int igu_sb_id;
@@ -10050,7 +10050,7 @@ static int __devinit bnx2x_get_igu_cam_info(struct bnx2x *bp)
10050 return 0; 10050 return 0;
10051} 10051}
10052 10052
10053static void __devinit bnx2x_link_settings_supported(struct bnx2x *bp, 10053static void bnx2x_link_settings_supported(struct bnx2x *bp,
10054 u32 switch_cfg) 10054 u32 switch_cfg)
10055{ 10055{
10056 int cfg_size = 0, idx, port = BP_PORT(bp); 10056 int cfg_size = 0, idx, port = BP_PORT(bp);
@@ -10149,7 +10149,7 @@ static void __devinit bnx2x_link_settings_supported(struct bnx2x *bp,
10149 bp->port.supported[1]); 10149 bp->port.supported[1]);
10150} 10150}
10151 10151
10152static void __devinit bnx2x_link_settings_requested(struct bnx2x *bp) 10152static void bnx2x_link_settings_requested(struct bnx2x *bp)
10153{ 10153{
10154 u32 link_config, idx, cfg_size = 0; 10154 u32 link_config, idx, cfg_size = 0;
10155 bp->port.advertising[0] = 0; 10155 bp->port.advertising[0] = 0;
@@ -10335,7 +10335,7 @@ static void __devinit bnx2x_link_settings_requested(struct bnx2x *bp)
10335 } 10335 }
10336} 10336}
10337 10337
10338static void __devinit bnx2x_set_mac_buf(u8 *mac_buf, u32 mac_lo, u16 mac_hi) 10338static void bnx2x_set_mac_buf(u8 *mac_buf, u32 mac_lo, u16 mac_hi)
10339{ 10339{
10340 mac_hi = cpu_to_be16(mac_hi); 10340 mac_hi = cpu_to_be16(mac_hi);
10341 mac_lo = cpu_to_be32(mac_lo); 10341 mac_lo = cpu_to_be32(mac_lo);
@@ -10343,7 +10343,7 @@ static void __devinit bnx2x_set_mac_buf(u8 *mac_buf, u32 mac_lo, u16 mac_hi)
10343 memcpy(mac_buf + sizeof(mac_hi), &mac_lo, sizeof(mac_lo)); 10343 memcpy(mac_buf + sizeof(mac_hi), &mac_lo, sizeof(mac_lo));
10344} 10344}
10345 10345
10346static void __devinit bnx2x_get_port_hwinfo(struct bnx2x *bp) 10346static void bnx2x_get_port_hwinfo(struct bnx2x *bp)
10347{ 10347{
10348 int port = BP_PORT(bp); 10348 int port = BP_PORT(bp);
10349 u32 config; 10349 u32 config;
@@ -10447,7 +10447,7 @@ void bnx2x_get_iscsi_info(struct bnx2x *bp)
10447 10447
10448} 10448}
10449 10449
10450static void __devinit bnx2x_get_ext_wwn_info(struct bnx2x *bp, int func) 10450static void bnx2x_get_ext_wwn_info(struct bnx2x *bp, int func)
10451{ 10451{
10452 /* Port info */ 10452 /* Port info */
10453 bp->cnic_eth_dev.fcoe_wwn_port_name_hi = 10453 bp->cnic_eth_dev.fcoe_wwn_port_name_hi =
@@ -10461,7 +10461,7 @@ static void __devinit bnx2x_get_ext_wwn_info(struct bnx2x *bp, int func)
10461 bp->cnic_eth_dev.fcoe_wwn_node_name_lo = 10461 bp->cnic_eth_dev.fcoe_wwn_node_name_lo =
10462 MF_CFG_RD(bp, func_ext_config[func].fcoe_wwn_node_name_lower); 10462 MF_CFG_RD(bp, func_ext_config[func].fcoe_wwn_node_name_lower);
10463} 10463}
10464static void __devinit bnx2x_get_fcoe_info(struct bnx2x *bp) 10464static void bnx2x_get_fcoe_info(struct bnx2x *bp)
10465{ 10465{
10466 int port = BP_PORT(bp); 10466 int port = BP_PORT(bp);
10467 int func = BP_ABS_FUNC(bp); 10467 int func = BP_ABS_FUNC(bp);
@@ -10521,7 +10521,7 @@ static void __devinit bnx2x_get_fcoe_info(struct bnx2x *bp)
10521 bp->flags |= NO_FCOE_FLAG; 10521 bp->flags |= NO_FCOE_FLAG;
10522} 10522}
10523 10523
10524static void __devinit bnx2x_get_cnic_info(struct bnx2x *bp) 10524static void bnx2x_get_cnic_info(struct bnx2x *bp)
10525{ 10525{
10526 /* 10526 /*
10527 * iSCSI may be dynamically disabled but reading 10527 * iSCSI may be dynamically disabled but reading
@@ -10532,7 +10532,7 @@ static void __devinit bnx2x_get_cnic_info(struct bnx2x *bp)
10532 bnx2x_get_fcoe_info(bp); 10532 bnx2x_get_fcoe_info(bp);
10533} 10533}
10534 10534
10535static void __devinit bnx2x_get_cnic_mac_hwinfo(struct bnx2x *bp) 10535static void bnx2x_get_cnic_mac_hwinfo(struct bnx2x *bp)
10536{ 10536{
10537 u32 val, val2; 10537 u32 val, val2;
10538 int func = BP_ABS_FUNC(bp); 10538 int func = BP_ABS_FUNC(bp);
@@ -10626,7 +10626,7 @@ static void __devinit bnx2x_get_cnic_mac_hwinfo(struct bnx2x *bp)
10626 } 10626 }
10627} 10627}
10628 10628
10629static void __devinit bnx2x_get_mac_hwinfo(struct bnx2x *bp) 10629static void bnx2x_get_mac_hwinfo(struct bnx2x *bp)
10630{ 10630{
10631 u32 val, val2; 10631 u32 val, val2;
10632 int func = BP_ABS_FUNC(bp); 10632 int func = BP_ABS_FUNC(bp);
@@ -10667,7 +10667,7 @@ static void __devinit bnx2x_get_mac_hwinfo(struct bnx2x *bp)
10667 bp->dev->dev_addr); 10667 bp->dev->dev_addr);
10668} 10668}
10669 10669
10670static bool __devinit bnx2x_get_dropless_info(struct bnx2x *bp) 10670static bool bnx2x_get_dropless_info(struct bnx2x *bp)
10671{ 10671{
10672 int tmp; 10672 int tmp;
10673 u32 cfg; 10673 u32 cfg;
@@ -10687,7 +10687,7 @@ static bool __devinit bnx2x_get_dropless_info(struct bnx2x *bp)
10687 return cfg; 10687 return cfg;
10688} 10688}
10689 10689
10690static int __devinit bnx2x_get_hwinfo(struct bnx2x *bp) 10690static int bnx2x_get_hwinfo(struct bnx2x *bp)
10691{ 10691{
10692 int /*abs*/func = BP_ABS_FUNC(bp); 10692 int /*abs*/func = BP_ABS_FUNC(bp);
10693 int vn; 10693 int vn;
@@ -10913,7 +10913,7 @@ static int __devinit bnx2x_get_hwinfo(struct bnx2x *bp)
10913 return rc; 10913 return rc;
10914} 10914}
10915 10915
10916static void __devinit bnx2x_read_fwinfo(struct bnx2x *bp) 10916static void bnx2x_read_fwinfo(struct bnx2x *bp)
10917{ 10917{
10918 int cnt, i, block_end, rodi; 10918 int cnt, i, block_end, rodi;
10919 char vpd_start[BNX2X_VPD_LEN+1]; 10919 char vpd_start[BNX2X_VPD_LEN+1];
@@ -10998,7 +10998,7 @@ out_not_found:
10998 return; 10998 return;
10999} 10999}
11000 11000
11001static void __devinit bnx2x_set_modes_bitmap(struct bnx2x *bp) 11001static void bnx2x_set_modes_bitmap(struct bnx2x *bp)
11002{ 11002{
11003 u32 flags = 0; 11003 u32 flags = 0;
11004 11004
@@ -11048,7 +11048,7 @@ static void __devinit bnx2x_set_modes_bitmap(struct bnx2x *bp)
11048 INIT_MODE_FLAGS(bp) = flags; 11048 INIT_MODE_FLAGS(bp) = flags;
11049} 11049}
11050 11050
11051static int __devinit bnx2x_init_bp(struct bnx2x *bp) 11051static int bnx2x_init_bp(struct bnx2x *bp)
11052{ 11052{
11053 int func; 11053 int func;
11054 int rc; 11054 int rc;
@@ -11531,7 +11531,7 @@ static int bnx2x_set_coherency_mask(struct bnx2x *bp)
11531 return 0; 11531 return 0;
11532} 11532}
11533 11533
11534static int __devinit bnx2x_init_dev(struct pci_dev *pdev, 11534static int bnx2x_init_dev(struct pci_dev *pdev,
11535 struct net_device *dev, 11535 struct net_device *dev,
11536 unsigned long board_type) 11536 unsigned long board_type)
11537{ 11537{
@@ -11705,7 +11705,7 @@ err_out:
11705 return rc; 11705 return rc;
11706} 11706}
11707 11707
11708static void __devinit bnx2x_get_pcie_width_speed(struct bnx2x *bp, 11708static void bnx2x_get_pcie_width_speed(struct bnx2x *bp,
11709 int *width, int *speed) 11709 int *width, int *speed)
11710{ 11710{
11711 u32 val = REG_RD(bp, PCICFG_OFFSET + PCICFG_LINK_CONTROL); 11711 u32 val = REG_RD(bp, PCICFG_OFFSET + PCICFG_LINK_CONTROL);
@@ -12010,7 +12010,7 @@ static int bnx2x_get_num_non_def_sbs(struct pci_dev *pdev,
12010 return control & PCI_MSIX_FLAGS_QSIZE; 12010 return control & PCI_MSIX_FLAGS_QSIZE;
12011} 12011}
12012 12012
12013static int __devinit bnx2x_init_one(struct pci_dev *pdev, 12013static int bnx2x_init_one(struct pci_dev *pdev,
12014 const struct pci_device_id *ent) 12014 const struct pci_device_id *ent)
12015{ 12015{
12016 struct net_device *dev = NULL; 12016 struct net_device *dev = NULL;
@@ -12199,7 +12199,7 @@ init_one_exit:
12199 return rc; 12199 return rc;
12200} 12200}
12201 12201
12202static void __devexit bnx2x_remove_one(struct pci_dev *pdev) 12202static void bnx2x_remove_one(struct pci_dev *pdev)
12203{ 12203{
12204 struct net_device *dev = pci_get_drvdata(pdev); 12204 struct net_device *dev = pci_get_drvdata(pdev);
12205 struct bnx2x *bp; 12205 struct bnx2x *bp;
@@ -12414,7 +12414,7 @@ static struct pci_driver bnx2x_pci_driver = {
12414 .name = DRV_MODULE_NAME, 12414 .name = DRV_MODULE_NAME,
12415 .id_table = bnx2x_pci_tbl, 12415 .id_table = bnx2x_pci_tbl,
12416 .probe = bnx2x_init_one, 12416 .probe = bnx2x_init_one,
12417 .remove = __devexit_p(bnx2x_remove_one), 12417 .remove = bnx2x_remove_one,
12418 .suspend = bnx2x_suspend, 12418 .suspend = bnx2x_suspend,
12419 .resume = bnx2x_resume, 12419 .resume = bnx2x_resume,
12420 .err_handler = &bnx2x_err_handler, 12420 .err_handler = &bnx2x_err_handler,