aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/chelsio/cxgb2.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/chelsio/cxgb2.c')
-rw-r--r--drivers/net/chelsio/cxgb2.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/drivers/net/chelsio/cxgb2.c b/drivers/net/chelsio/cxgb2.c
index a54a32b16498..0f71304e0542 100644
--- a/drivers/net/chelsio/cxgb2.c
+++ b/drivers/net/chelsio/cxgb2.c
@@ -974,7 +974,7 @@ void t1_fatal_err(struct adapter *adapter)
974 t1_sge_stop(adapter->sge); 974 t1_sge_stop(adapter->sge);
975 t1_interrupts_disable(adapter); 975 t1_interrupts_disable(adapter);
976 } 976 }
977 CH_ALERT("%s: encountered fatal error, operation suspended\n", 977 pr_alert("%s: encountered fatal error, operation suspended\n",
978 adapter->name); 978 adapter->name);
979} 979}
980 980
@@ -1018,7 +1018,7 @@ static int __devinit init_one(struct pci_dev *pdev,
1018 return err; 1018 return err;
1019 1019
1020 if (!(pci_resource_flags(pdev, 0) & IORESOURCE_MEM)) { 1020 if (!(pci_resource_flags(pdev, 0) & IORESOURCE_MEM)) {
1021 CH_ERR("%s: cannot find PCI device memory base address\n", 1021 pr_err("%s: cannot find PCI device memory base address\n",
1022 pci_name(pdev)); 1022 pci_name(pdev));
1023 err = -ENODEV; 1023 err = -ENODEV;
1024 goto out_disable_pdev; 1024 goto out_disable_pdev;
@@ -1028,20 +1028,20 @@ static int __devinit init_one(struct pci_dev *pdev,
1028 pci_using_dac = 1; 1028 pci_using_dac = 1;
1029 1029
1030 if (pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(64))) { 1030 if (pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(64))) {
1031 CH_ERR("%s: unable to obtain 64-bit DMA for " 1031 pr_err("%s: unable to obtain 64-bit DMA for "
1032 "consistent allocations\n", pci_name(pdev)); 1032 "consistent allocations\n", pci_name(pdev));
1033 err = -ENODEV; 1033 err = -ENODEV;
1034 goto out_disable_pdev; 1034 goto out_disable_pdev;
1035 } 1035 }
1036 1036
1037 } else if ((err = pci_set_dma_mask(pdev, DMA_BIT_MASK(32))) != 0) { 1037 } else if ((err = pci_set_dma_mask(pdev, DMA_BIT_MASK(32))) != 0) {
1038 CH_ERR("%s: no usable DMA configuration\n", pci_name(pdev)); 1038 pr_err("%s: no usable DMA configuration\n", pci_name(pdev));
1039 goto out_disable_pdev; 1039 goto out_disable_pdev;
1040 } 1040 }
1041 1041
1042 err = pci_request_regions(pdev, DRV_NAME); 1042 err = pci_request_regions(pdev, DRV_NAME);
1043 if (err) { 1043 if (err) {
1044 CH_ERR("%s: cannot obtain PCI resources\n", pci_name(pdev)); 1044 pr_err("%s: cannot obtain PCI resources\n", pci_name(pdev));
1045 goto out_disable_pdev; 1045 goto out_disable_pdev;
1046 } 1046 }
1047 1047
@@ -1069,7 +1069,7 @@ static int __devinit init_one(struct pci_dev *pdev,
1069 1069
1070 adapter->regs = ioremap(mmio_start, mmio_len); 1070 adapter->regs = ioremap(mmio_start, mmio_len);
1071 if (!adapter->regs) { 1071 if (!adapter->regs) {
1072 CH_ERR("%s: cannot map device registers\n", 1072 pr_err("%s: cannot map device registers\n",
1073 pci_name(pdev)); 1073 pci_name(pdev));
1074 err = -ENOMEM; 1074 err = -ENOMEM;
1075 goto out_free_dev; 1075 goto out_free_dev;
@@ -1148,8 +1148,8 @@ static int __devinit init_one(struct pci_dev *pdev,
1148 for (i = 0; i < bi->port_number; ++i) { 1148 for (i = 0; i < bi->port_number; ++i) {
1149 err = register_netdev(adapter->port[i].dev); 1149 err = register_netdev(adapter->port[i].dev);
1150 if (err) 1150 if (err)
1151 CH_WARN("%s: cannot register net device %s, skipping\n", 1151 pr_warning("%s: cannot register net device %s, skipping\n",
1152 pci_name(pdev), adapter->port[i].dev->name); 1152 pci_name(pdev), adapter->port[i].dev->name);
1153 else { 1153 else {
1154 /* 1154 /*
1155 * Change the name we use for messages to the name of 1155 * Change the name we use for messages to the name of
@@ -1162,7 +1162,7 @@ static int __devinit init_one(struct pci_dev *pdev,
1162 } 1162 }
1163 } 1163 }
1164 if (!adapter->registered_device_map) { 1164 if (!adapter->registered_device_map) {
1165 CH_ERR("%s: could not register any net devices\n", 1165 pr_err("%s: could not register any net devices\n",
1166 pci_name(pdev)); 1166 pci_name(pdev));
1167 goto out_release_adapter_res; 1167 goto out_release_adapter_res;
1168 } 1168 }