aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2010-02-17 10:01:51 -0500
committerDavid S. Miller <davem@davemloft.net>2010-02-17 20:45:19 -0500
commit3a9c6a4915e584663aebdb9016bcb9d3897dd779 (patch)
tree8121d82ad6d4ab560cbad578a73757c079e742ad /drivers
parent2fc96fff4483971aa81795382c368ea7d8100dde (diff)
drivers/net/bnx2.c: Use (pr|netdev|netif)_<level> macro helpers
Add #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt Remove #define PFX Use pr_<level> Use netdev_<level> Use netif_<level> Remove periods from formats Coalesce long formats Coalesce some printks Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/bnx2.c145
1 files changed, 61 insertions, 84 deletions
diff --git a/drivers/net/bnx2.c b/drivers/net/bnx2.c
index 5f0dda10f20d..a6cc9d02e589 100644
--- a/drivers/net/bnx2.c
+++ b/drivers/net/bnx2.c
@@ -9,6 +9,7 @@
9 * Written by: Michael Chan (mchan@broadcom.com) 9 * Written by: Michael Chan (mchan@broadcom.com)
10 */ 10 */
11 11
12#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
12 13
13#include <linux/module.h> 14#include <linux/module.h>
14#include <linux/moduleparam.h> 15#include <linux/moduleparam.h>
@@ -57,7 +58,6 @@
57#include "bnx2_fw.h" 58#include "bnx2_fw.h"
58 59
59#define DRV_MODULE_NAME "bnx2" 60#define DRV_MODULE_NAME "bnx2"
60#define PFX DRV_MODULE_NAME ": "
61#define DRV_MODULE_VERSION "2.0.8" 61#define DRV_MODULE_VERSION "2.0.8"
62#define DRV_MODULE_RELDATE "Feb 15, 2010" 62#define DRV_MODULE_RELDATE "Feb 15, 2010"
63#define FW_MIPS_FILE_06 "bnx2/bnx2-mips-06-5.0.0.j6.fw" 63#define FW_MIPS_FILE_06 "bnx2/bnx2-mips-06-5.0.0.j6.fw"
@@ -979,33 +979,27 @@ bnx2_report_link(struct bnx2 *bp)
979{ 979{
980 if (bp->link_up) { 980 if (bp->link_up) {
981 netif_carrier_on(bp->dev); 981 netif_carrier_on(bp->dev);
982 printk(KERN_INFO PFX "%s NIC %s Link is Up, ", bp->dev->name, 982 netdev_info(bp->dev, "NIC %s Link is Up, %d Mbps %s duplex",
983 bnx2_xceiver_str(bp)); 983 bnx2_xceiver_str(bp),
984 984 bp->line_speed,
985 printk("%d Mbps ", bp->line_speed); 985 bp->duplex == DUPLEX_FULL ? "full" : "half");
986
987 if (bp->duplex == DUPLEX_FULL)
988 printk("full duplex");
989 else
990 printk("half duplex");
991 986
992 if (bp->flow_ctrl) { 987 if (bp->flow_ctrl) {
993 if (bp->flow_ctrl & FLOW_CTRL_RX) { 988 if (bp->flow_ctrl & FLOW_CTRL_RX) {
994 printk(", receive "); 989 pr_cont(", receive ");
995 if (bp->flow_ctrl & FLOW_CTRL_TX) 990 if (bp->flow_ctrl & FLOW_CTRL_TX)
996 printk("& transmit "); 991 pr_cont("& transmit ");
997 } 992 }
998 else { 993 else {
999 printk(", transmit "); 994 pr_cont(", transmit ");
1000 } 995 }
1001 printk("flow control ON"); 996 pr_cont("flow control ON");
1002 } 997 }
1003 printk("\n"); 998 pr_cont("\n");
1004 } 999 } else {
1005 else {
1006 netif_carrier_off(bp->dev); 1000 netif_carrier_off(bp->dev);
1007 printk(KERN_ERR PFX "%s NIC %s Link is Down\n", bp->dev->name, 1001 netdev_err(bp->dev, "NIC %s Link is Down\n",
1008 bnx2_xceiver_str(bp)); 1002 bnx2_xceiver_str(bp));
1009 } 1003 }
1010 1004
1011 bnx2_report_fw_link(bp); 1005 bnx2_report_fw_link(bp);
@@ -2482,8 +2476,7 @@ bnx2_fw_sync(struct bnx2 *bp, u32 msg_data, int ack, int silent)
2482 /* If we timed out, inform the firmware that this is the case. */ 2476 /* If we timed out, inform the firmware that this is the case. */
2483 if ((val & BNX2_FW_MSG_ACK) != (msg_data & BNX2_DRV_MSG_SEQ)) { 2477 if ((val & BNX2_FW_MSG_ACK) != (msg_data & BNX2_DRV_MSG_SEQ)) {
2484 if (!silent) 2478 if (!silent)
2485 printk(KERN_ERR PFX "fw sync timeout, reset code = " 2479 pr_err("fw sync timeout, reset code = %x\n", msg_data);
2486 "%x\n", msg_data);
2487 2480
2488 msg_data &= ~BNX2_DRV_MSG_CODE; 2481 msg_data &= ~BNX2_DRV_MSG_CODE;
2489 msg_data |= BNX2_DRV_MSG_CODE_FW_TIMEOUT; 2482 msg_data |= BNX2_DRV_MSG_CODE_FW_TIMEOUT;
@@ -2599,8 +2592,7 @@ bnx2_alloc_bad_rbuf(struct bnx2 *bp)
2599 2592
2600 good_mbuf = kmalloc(512 * sizeof(u16), GFP_KERNEL); 2593 good_mbuf = kmalloc(512 * sizeof(u16), GFP_KERNEL);
2601 if (good_mbuf == NULL) { 2594 if (good_mbuf == NULL) {
2602 printk(KERN_ERR PFX "Failed to allocate memory in " 2595 pr_err("Failed to allocate memory in %s\n", __func__);
2603 "bnx2_alloc_bad_rbuf\n");
2604 return -ENOMEM; 2596 return -ENOMEM;
2605 } 2597 }
2606 2598
@@ -3656,15 +3648,13 @@ bnx2_request_firmware(struct bnx2 *bp)
3656 3648
3657 rc = request_firmware(&bp->mips_firmware, mips_fw_file, &bp->pdev->dev); 3649 rc = request_firmware(&bp->mips_firmware, mips_fw_file, &bp->pdev->dev);
3658 if (rc) { 3650 if (rc) {
3659 printk(KERN_ERR PFX "Can't load firmware file \"%s\"\n", 3651 pr_err("Can't load firmware file \"%s\"\n", mips_fw_file);
3660 mips_fw_file);
3661 return rc; 3652 return rc;
3662 } 3653 }
3663 3654
3664 rc = request_firmware(&bp->rv2p_firmware, rv2p_fw_file, &bp->pdev->dev); 3655 rc = request_firmware(&bp->rv2p_firmware, rv2p_fw_file, &bp->pdev->dev);
3665 if (rc) { 3656 if (rc) {
3666 printk(KERN_ERR PFX "Can't load firmware file \"%s\"\n", 3657 pr_err("Can't load firmware file \"%s\"\n", rv2p_fw_file);
3667 rv2p_fw_file);
3668 return rc; 3658 return rc;
3669 } 3659 }
3670 mips_fw = (const struct bnx2_mips_fw_file *) bp->mips_firmware->data; 3660 mips_fw = (const struct bnx2_mips_fw_file *) bp->mips_firmware->data;
@@ -3675,15 +3665,13 @@ bnx2_request_firmware(struct bnx2 *bp)
3675 check_mips_fw_entry(bp->mips_firmware, &mips_fw->rxp) || 3665 check_mips_fw_entry(bp->mips_firmware, &mips_fw->rxp) ||
3676 check_mips_fw_entry(bp->mips_firmware, &mips_fw->tpat) || 3666 check_mips_fw_entry(bp->mips_firmware, &mips_fw->tpat) ||
3677 check_mips_fw_entry(bp->mips_firmware, &mips_fw->txp)) { 3667 check_mips_fw_entry(bp->mips_firmware, &mips_fw->txp)) {
3678 printk(KERN_ERR PFX "Firmware file \"%s\" is invalid\n", 3668 pr_err("Firmware file \"%s\" is invalid\n", mips_fw_file);
3679 mips_fw_file);
3680 return -EINVAL; 3669 return -EINVAL;
3681 } 3670 }
3682 if (bp->rv2p_firmware->size < sizeof(*rv2p_fw) || 3671 if (bp->rv2p_firmware->size < sizeof(*rv2p_fw) ||
3683 check_fw_section(bp->rv2p_firmware, &rv2p_fw->proc1.rv2p, 8, true) || 3672 check_fw_section(bp->rv2p_firmware, &rv2p_fw->proc1.rv2p, 8, true) ||
3684 check_fw_section(bp->rv2p_firmware, &rv2p_fw->proc2.rv2p, 8, true)) { 3673 check_fw_section(bp->rv2p_firmware, &rv2p_fw->proc2.rv2p, 8, true)) {
3685 printk(KERN_ERR PFX "Firmware file \"%s\" is invalid\n", 3674 pr_err("Firmware file \"%s\" is invalid\n", rv2p_fw_file);
3686 rv2p_fw_file);
3687 return -EINVAL; 3675 return -EINVAL;
3688 } 3676 }
3689 3677
@@ -4317,7 +4305,7 @@ bnx2_init_nvram(struct bnx2 *bp)
4317 4305
4318 if (j == entry_count) { 4306 if (j == entry_count) {
4319 bp->flash_info = NULL; 4307 bp->flash_info = NULL;
4320 printk(KERN_ALERT PFX "Unknown flash/EEPROM type.\n"); 4308 pr_alert("Unknown flash/EEPROM type\n");
4321 return -ENODEV; 4309 return -ENODEV;
4322 } 4310 }
4323 4311
@@ -4737,7 +4725,7 @@ bnx2_reset_chip(struct bnx2 *bp, u32 reset_code)
4737 4725
4738 if (val & (BNX2_PCICFG_MISC_CONFIG_CORE_RST_REQ | 4726 if (val & (BNX2_PCICFG_MISC_CONFIG_CORE_RST_REQ |
4739 BNX2_PCICFG_MISC_CONFIG_CORE_RST_BSY)) { 4727 BNX2_PCICFG_MISC_CONFIG_CORE_RST_BSY)) {
4740 printk(KERN_ERR PFX "Chip reset did not complete\n"); 4728 pr_err("Chip reset did not complete\n");
4741 return -EBUSY; 4729 return -EBUSY;
4742 } 4730 }
4743 } 4731 }
@@ -4745,7 +4733,7 @@ bnx2_reset_chip(struct bnx2 *bp, u32 reset_code)
4745 /* Make sure byte swapping is properly configured. */ 4733 /* Make sure byte swapping is properly configured. */
4746 val = REG_RD(bp, BNX2_PCI_SWAP_DIAG0); 4734 val = REG_RD(bp, BNX2_PCI_SWAP_DIAG0);
4747 if (val != 0x01020304) { 4735 if (val != 0x01020304) {
4748 printk(KERN_ERR PFX "Chip not in correct endian mode\n"); 4736 pr_err("Chip not in correct endian mode\n");
4749 return -ENODEV; 4737 return -ENODEV;
4750 } 4738 }
4751 4739
@@ -5166,9 +5154,8 @@ bnx2_init_rx_ring(struct bnx2 *bp, int ring_num)
5166 ring_prod = prod = rxr->rx_pg_prod; 5154 ring_prod = prod = rxr->rx_pg_prod;
5167 for (i = 0; i < bp->rx_pg_ring_size; i++) { 5155 for (i = 0; i < bp->rx_pg_ring_size; i++) {
5168 if (bnx2_alloc_rx_page(bp, rxr, ring_prod) < 0) { 5156 if (bnx2_alloc_rx_page(bp, rxr, ring_prod) < 0) {
5169 printk(KERN_WARNING PFX "%s: init'ed rx page ring %d " 5157 netdev_warn(bp->dev, "init'ed rx page ring %d with %d/%d pages only\n",
5170 "with %d/%d pages only\n", 5158 ring_num, i, bp->rx_pg_ring_size);
5171 bp->dev->name, ring_num, i, bp->rx_pg_ring_size);
5172 break; 5159 break;
5173 } 5160 }
5174 prod = NEXT_RX_BD(prod); 5161 prod = NEXT_RX_BD(prod);
@@ -5179,9 +5166,8 @@ bnx2_init_rx_ring(struct bnx2 *bp, int ring_num)
5179 ring_prod = prod = rxr->rx_prod; 5166 ring_prod = prod = rxr->rx_prod;
5180 for (i = 0; i < bp->rx_ring_size; i++) { 5167 for (i = 0; i < bp->rx_ring_size; i++) {
5181 if (bnx2_alloc_rx_skb(bp, rxr, ring_prod) < 0) { 5168 if (bnx2_alloc_rx_skb(bp, rxr, ring_prod) < 0) {
5182 printk(KERN_WARNING PFX "%s: init'ed rx ring %d with " 5169 netdev_warn(bp->dev, "init'ed rx ring %d with %d/%d skbs only\n",
5183 "%d/%d skbs only\n", 5170 ring_num, i, bp->rx_ring_size);
5184 bp->dev->name, ring_num, i, bp->rx_ring_size);
5185 break; 5171 break;
5186 } 5172 }
5187 prod = NEXT_RX_BD(prod); 5173 prod = NEXT_RX_BD(prod);
@@ -6239,11 +6225,7 @@ bnx2_open(struct net_device *dev)
6239 * If MSI test fails, go back to INTx mode 6225 * If MSI test fails, go back to INTx mode
6240 */ 6226 */
6241 if (bnx2_test_intr(bp) != 0) { 6227 if (bnx2_test_intr(bp) != 0) {
6242 printk(KERN_WARNING PFX "%s: No interrupt was generated" 6228 netdev_warn(bp->dev, "No interrupt was generated using MSI, switching to INTx mode. Please report this failure to the PCI maintainer and include system chipset information.\n");
6243 " using MSI, switching to INTx mode. Please"
6244 " report this failure to the PCI maintainer"
6245 " and include system chipset information.\n",
6246 bp->dev->name);
6247 6229
6248 bnx2_disable_int(bp); 6230 bnx2_disable_int(bp);
6249 bnx2_free_irq(bp); 6231 bnx2_free_irq(bp);
@@ -6263,9 +6245,9 @@ bnx2_open(struct net_device *dev)
6263 } 6245 }
6264 } 6246 }
6265 if (bp->flags & BNX2_FLAG_USING_MSI) 6247 if (bp->flags & BNX2_FLAG_USING_MSI)
6266 printk(KERN_INFO PFX "%s: using MSI\n", dev->name); 6248 netdev_info(dev, "using MSI\n");
6267 else if (bp->flags & BNX2_FLAG_USING_MSIX) 6249 else if (bp->flags & BNX2_FLAG_USING_MSIX)
6268 printk(KERN_INFO PFX "%s: using MSIX\n", dev->name); 6250 netdev_info(dev, "using MSIX\n");
6269 6251
6270 netif_tx_start_all_queues(dev); 6252 netif_tx_start_all_queues(dev);
6271 6253
@@ -6304,20 +6286,18 @@ bnx2_dump_state(struct bnx2 *bp)
6304{ 6286{
6305 struct net_device *dev = bp->dev; 6287 struct net_device *dev = bp->dev;
6306 6288
6307 printk(KERN_ERR PFX "%s DEBUG: intr_sem[%x]\n", dev->name, 6289 netdev_err(dev, "DEBUG: intr_sem[%x]\n", atomic_read(&bp->intr_sem));
6308 atomic_read(&bp->intr_sem)); 6290 netdev_err(dev, "DEBUG: EMAC_TX_STATUS[%08x] RPM_MGMT_PKT_CTRL[%08x]\n",
6309 printk(KERN_ERR PFX "%s DEBUG: EMAC_TX_STATUS[%08x] " 6291 REG_RD(bp, BNX2_EMAC_TX_STATUS),
6310 "RPM_MGMT_PKT_CTRL[%08x]\n", dev->name, 6292 REG_RD(bp, BNX2_RPM_MGMT_PKT_CTRL));
6311 REG_RD(bp, BNX2_EMAC_TX_STATUS), 6293 netdev_err(dev, "DEBUG: MCP_STATE_P0[%08x] MCP_STATE_P1[%08x]\n",
6312 REG_RD(bp, BNX2_RPM_MGMT_PKT_CTRL)); 6294 bnx2_reg_rd_ind(bp, BNX2_MCP_STATE_P0),
6313 printk(KERN_ERR PFX "%s DEBUG: MCP_STATE_P0[%08x] MCP_STATE_P1[%08x]\n", 6295 bnx2_reg_rd_ind(bp, BNX2_MCP_STATE_P1));
6314 dev->name, bnx2_reg_rd_ind(bp, BNX2_MCP_STATE_P0), 6296 netdev_err(dev, "DEBUG: HC_STATS_INTERRUPT_STATUS[%08x]\n",
6315 bnx2_reg_rd_ind(bp, BNX2_MCP_STATE_P1)); 6297 REG_RD(bp, BNX2_HC_STATS_INTERRUPT_STATUS));
6316 printk(KERN_ERR PFX "%s DEBUG: HC_STATS_INTERRUPT_STATUS[%08x]\n",
6317 dev->name, REG_RD(bp, BNX2_HC_STATS_INTERRUPT_STATUS));
6318 if (bp->flags & BNX2_FLAG_USING_MSIX) 6298 if (bp->flags & BNX2_FLAG_USING_MSIX)
6319 printk(KERN_ERR PFX "%s DEBUG: PBA[%08x]\n", dev->name, 6299 netdev_err(dev, "DEBUG: PBA[%08x]\n",
6320 REG_RD(bp, BNX2_PCI_GRC_WINDOW3_BASE)); 6300 REG_RD(bp, BNX2_PCI_GRC_WINDOW3_BASE));
6321} 6301}
6322 6302
6323static void 6303static void
@@ -6381,8 +6361,7 @@ bnx2_start_xmit(struct sk_buff *skb, struct net_device *dev)
6381 if (unlikely(bnx2_tx_avail(bp, txr) < 6361 if (unlikely(bnx2_tx_avail(bp, txr) <
6382 (skb_shinfo(skb)->nr_frags + 1))) { 6362 (skb_shinfo(skb)->nr_frags + 1))) {
6383 netif_tx_stop_queue(txq); 6363 netif_tx_stop_queue(txq);
6384 printk(KERN_ERR PFX "%s: BUG! Tx ring full when queue awake!\n", 6364 netdev_err(dev, "BUG! Tx ring full when queue awake!\n");
6385 dev->name);
6386 6365
6387 return NETDEV_TX_BUSY; 6366 return NETDEV_TX_BUSY;
6388 } 6367 }
@@ -7869,20 +7848,20 @@ bnx2_init_board(struct pci_dev *pdev, struct net_device *dev)
7869 /* enable device (incl. PCI PM wakeup), and bus-mastering */ 7848 /* enable device (incl. PCI PM wakeup), and bus-mastering */
7870 rc = pci_enable_device(pdev); 7849 rc = pci_enable_device(pdev);
7871 if (rc) { 7850 if (rc) {
7872 dev_err(&pdev->dev, "Cannot enable PCI device, aborting.\n"); 7851 dev_err(&pdev->dev, "Cannot enable PCI device, aborting\n");
7873 goto err_out; 7852 goto err_out;
7874 } 7853 }
7875 7854
7876 if (!(pci_resource_flags(pdev, 0) & IORESOURCE_MEM)) { 7855 if (!(pci_resource_flags(pdev, 0) & IORESOURCE_MEM)) {
7877 dev_err(&pdev->dev, 7856 dev_err(&pdev->dev,
7878 "Cannot find PCI device base address, aborting.\n"); 7857 "Cannot find PCI device base address, aborting\n");
7879 rc = -ENODEV; 7858 rc = -ENODEV;
7880 goto err_out_disable; 7859 goto err_out_disable;
7881 } 7860 }
7882 7861
7883 rc = pci_request_regions(pdev, DRV_MODULE_NAME); 7862 rc = pci_request_regions(pdev, DRV_MODULE_NAME);
7884 if (rc) { 7863 if (rc) {
7885 dev_err(&pdev->dev, "Cannot obtain PCI resources, aborting.\n"); 7864 dev_err(&pdev->dev, "Cannot obtain PCI resources, aborting\n");
7886 goto err_out_disable; 7865 goto err_out_disable;
7887 } 7866 }
7888 7867
@@ -7892,7 +7871,7 @@ bnx2_init_board(struct pci_dev *pdev, struct net_device *dev)
7892 bp->pm_cap = pci_find_capability(pdev, PCI_CAP_ID_PM); 7871 bp->pm_cap = pci_find_capability(pdev, PCI_CAP_ID_PM);
7893 if (bp->pm_cap == 0) { 7872 if (bp->pm_cap == 0) {
7894 dev_err(&pdev->dev, 7873 dev_err(&pdev->dev,
7895 "Cannot find power management capability, aborting.\n"); 7874 "Cannot find power management capability, aborting\n");
7896 rc = -EIO; 7875 rc = -EIO;
7897 goto err_out_release; 7876 goto err_out_release;
7898 } 7877 }
@@ -7915,7 +7894,7 @@ bnx2_init_board(struct pci_dev *pdev, struct net_device *dev)
7915 bp->regview = ioremap_nocache(dev->base_addr, mem_len); 7894 bp->regview = ioremap_nocache(dev->base_addr, mem_len);
7916 7895
7917 if (!bp->regview) { 7896 if (!bp->regview) {
7918 dev_err(&pdev->dev, "Cannot map register space, aborting.\n"); 7897 dev_err(&pdev->dev, "Cannot map register space, aborting\n");
7919 rc = -ENOMEM; 7898 rc = -ENOMEM;
7920 goto err_out_release; 7899 goto err_out_release;
7921 } 7900 }
@@ -7935,7 +7914,7 @@ bnx2_init_board(struct pci_dev *pdev, struct net_device *dev)
7935 if (CHIP_NUM(bp) == CHIP_NUM_5709) { 7914 if (CHIP_NUM(bp) == CHIP_NUM_5709) {
7936 if (pci_find_capability(pdev, PCI_CAP_ID_EXP) == 0) { 7915 if (pci_find_capability(pdev, PCI_CAP_ID_EXP) == 0) {
7937 dev_err(&pdev->dev, 7916 dev_err(&pdev->dev,
7938 "Cannot find PCIE capability, aborting.\n"); 7917 "Cannot find PCIE capability, aborting\n");
7939 rc = -EIO; 7918 rc = -EIO;
7940 goto err_out_unmap; 7919 goto err_out_unmap;
7941 } 7920 }
@@ -7946,7 +7925,7 @@ bnx2_init_board(struct pci_dev *pdev, struct net_device *dev)
7946 bp->pcix_cap = pci_find_capability(pdev, PCI_CAP_ID_PCIX); 7925 bp->pcix_cap = pci_find_capability(pdev, PCI_CAP_ID_PCIX);
7947 if (bp->pcix_cap == 0) { 7926 if (bp->pcix_cap == 0) {
7948 dev_err(&pdev->dev, 7927 dev_err(&pdev->dev,
7949 "Cannot find PCIX capability, aborting.\n"); 7928 "Cannot find PCIX capability, aborting\n");
7950 rc = -EIO; 7929 rc = -EIO;
7951 goto err_out_unmap; 7930 goto err_out_unmap;
7952 } 7931 }
@@ -7975,11 +7954,11 @@ bnx2_init_board(struct pci_dev *pdev, struct net_device *dev)
7975 rc = pci_set_consistent_dma_mask(pdev, persist_dma_mask); 7954 rc = pci_set_consistent_dma_mask(pdev, persist_dma_mask);
7976 if (rc) { 7955 if (rc) {
7977 dev_err(&pdev->dev, 7956 dev_err(&pdev->dev,
7978 "pci_set_consistent_dma_mask failed, aborting.\n"); 7957 "pci_set_consistent_dma_mask failed, aborting\n");
7979 goto err_out_unmap; 7958 goto err_out_unmap;
7980 } 7959 }
7981 } else if ((rc = pci_set_dma_mask(pdev, DMA_BIT_MASK(32))) != 0) { 7960 } else if ((rc = pci_set_dma_mask(pdev, DMA_BIT_MASK(32))) != 0) {
7982 dev_err(&pdev->dev, "System does not support DMA, aborting.\n"); 7961 dev_err(&pdev->dev, "System does not support DMA, aborting\n");
7983 goto err_out_unmap; 7962 goto err_out_unmap;
7984 } 7963 }
7985 7964
@@ -7996,7 +7975,7 @@ bnx2_init_board(struct pci_dev *pdev, struct net_device *dev)
7996 !(bp->flags & BNX2_FLAG_PCIX)) { 7975 !(bp->flags & BNX2_FLAG_PCIX)) {
7997 7976
7998 dev_err(&pdev->dev, 7977 dev_err(&pdev->dev,
7999 "5706 A1 can only be used in a PCIX bus, aborting.\n"); 7978 "5706 A1 can only be used in a PCIX bus, aborting\n");
8000 goto err_out_unmap; 7979 goto err_out_unmap;
8001 } 7980 }
8002 7981
@@ -8019,7 +7998,7 @@ bnx2_init_board(struct pci_dev *pdev, struct net_device *dev)
8019 7998
8020 if ((reg & BNX2_DEV_INFO_SIGNATURE_MAGIC_MASK) != 7999 if ((reg & BNX2_DEV_INFO_SIGNATURE_MAGIC_MASK) !=
8021 BNX2_DEV_INFO_SIGNATURE_MAGIC) { 8000 BNX2_DEV_INFO_SIGNATURE_MAGIC) {
8022 dev_err(&pdev->dev, "Firmware not running, aborting.\n"); 8001 dev_err(&pdev->dev, "Firmware not running, aborting\n");
8023 rc = -ENODEV; 8002 rc = -ENODEV;
8024 goto err_out_unmap; 8003 goto err_out_unmap;
8025 } 8004 }
@@ -8292,7 +8271,7 @@ bnx2_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
8292 char str[40]; 8271 char str[40];
8293 8272
8294 if (version_printed++ == 0) 8273 if (version_printed++ == 0)
8295 printk(KERN_INFO "%s", version); 8274 pr_info("%s", version);
8296 8275
8297 /* dev zeroed in init_etherdev */ 8276 /* dev zeroed in init_etherdev */
8298 dev = alloc_etherdev_mq(sizeof(*bp), TX_MAX_RINGS); 8277 dev = alloc_etherdev_mq(sizeof(*bp), TX_MAX_RINGS);
@@ -8342,15 +8321,13 @@ bnx2_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
8342 goto error; 8321 goto error;
8343 } 8322 }
8344 8323
8345 printk(KERN_INFO "%s: %s (%c%d) %s found at mem %lx, " 8324 netdev_info(dev, "%s (%c%d) %s found at mem %lx, IRQ %d, node addr %pM\n",
8346 "IRQ %d, node addr %pM\n", 8325 board_info[ent->driver_data].name,
8347 dev->name, 8326 ((CHIP_ID(bp) & 0xf000) >> 12) + 'A',
8348 board_info[ent->driver_data].name, 8327 ((CHIP_ID(bp) & 0x0ff0) >> 4),
8349 ((CHIP_ID(bp) & 0xf000) >> 12) + 'A', 8328 bnx2_bus_string(bp, str),
8350 ((CHIP_ID(bp) & 0x0ff0) >> 4), 8329 dev->base_addr,
8351 bnx2_bus_string(bp, str), 8330 bp->pdev->irq, dev->dev_addr);
8352 dev->base_addr,
8353 bp->pdev->irq, dev->dev_addr);
8354 8331
8355 return 0; 8332 return 0;
8356 8333
@@ -8485,7 +8462,7 @@ static pci_ers_result_t bnx2_io_slot_reset(struct pci_dev *pdev)
8485 rtnl_lock(); 8462 rtnl_lock();
8486 if (pci_enable_device(pdev)) { 8463 if (pci_enable_device(pdev)) {
8487 dev_err(&pdev->dev, 8464 dev_err(&pdev->dev,
8488 "Cannot re-enable PCI device after reset.\n"); 8465 "Cannot re-enable PCI device after reset\n");
8489 rtnl_unlock(); 8466 rtnl_unlock();
8490 return PCI_ERS_RESULT_DISCONNECT; 8467 return PCI_ERS_RESULT_DISCONNECT;
8491 } 8468 }