aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/r8169.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/r8169.c')
-rw-r--r--drivers/net/r8169.c19
1 files changed, 8 insertions, 11 deletions
diff --git a/drivers/net/r8169.c b/drivers/net/r8169.c
index ae2a1f8f1454..4c2f575faad7 100644
--- a/drivers/net/r8169.c
+++ b/drivers/net/r8169.c
@@ -1406,8 +1406,7 @@ rtl8169_init_board(struct pci_dev *pdev, struct net_device **dev_out,
1406 dev = alloc_etherdev(sizeof (*tp)); 1406 dev = alloc_etherdev(sizeof (*tp));
1407 if (dev == NULL) { 1407 if (dev == NULL) {
1408 if (netif_msg_drv(&debug)) 1408 if (netif_msg_drv(&debug))
1409 dev_printk(KERN_ERR, &pdev->dev, 1409 dev_err(&pdev->dev, "unable to alloc new ethernet\n");
1410 "unable to alloc new ethernet\n");
1411 goto err_out; 1410 goto err_out;
1412 } 1411 }
1413 1412
@@ -1420,7 +1419,7 @@ rtl8169_init_board(struct pci_dev *pdev, struct net_device **dev_out,
1420 rc = pci_enable_device(pdev); 1419 rc = pci_enable_device(pdev);
1421 if (rc < 0) { 1420 if (rc < 0) {
1422 if (netif_msg_probe(tp)) 1421 if (netif_msg_probe(tp))
1423 dev_printk(KERN_ERR, &pdev->dev, "enable failure\n"); 1422 dev_err(&pdev->dev, "enable failure\n");
1424 goto err_out_free_dev; 1423 goto err_out_free_dev;
1425 } 1424 }
1426 1425
@@ -1437,14 +1436,14 @@ rtl8169_init_board(struct pci_dev *pdev, struct net_device **dev_out,
1437 acpi_idle_state = pwr_command & PCI_PM_CTRL_STATE_MASK; 1436 acpi_idle_state = pwr_command & PCI_PM_CTRL_STATE_MASK;
1438 } else { 1437 } else {
1439 if (netif_msg_probe(tp)) 1438 if (netif_msg_probe(tp))
1440 dev_printk(KERN_ERR, &pdev->dev, 1439 dev_err(&pdev->dev,
1441 "PowerManagement capability not found.\n"); 1440 "PowerManagement capability not found.\n");
1442 } 1441 }
1443 1442
1444 /* make sure PCI base addr 1 is MMIO */ 1443 /* make sure PCI base addr 1 is MMIO */
1445 if (!(pci_resource_flags(pdev, 1) & IORESOURCE_MEM)) { 1444 if (!(pci_resource_flags(pdev, 1) & IORESOURCE_MEM)) {
1446 if (netif_msg_probe(tp)) 1445 if (netif_msg_probe(tp))
1447 dev_printk(KERN_ERR, &pdev->dev, 1446 dev_err(&pdev->dev,
1448 "region #1 not an MMIO resource, aborting\n"); 1447 "region #1 not an MMIO resource, aborting\n");
1449 rc = -ENODEV; 1448 rc = -ENODEV;
1450 goto err_out_mwi; 1449 goto err_out_mwi;
@@ -1452,7 +1451,7 @@ rtl8169_init_board(struct pci_dev *pdev, struct net_device **dev_out,
1452 /* check for weird/broken PCI region reporting */ 1451 /* check for weird/broken PCI region reporting */
1453 if (pci_resource_len(pdev, 1) < R8169_REGS_SIZE) { 1452 if (pci_resource_len(pdev, 1) < R8169_REGS_SIZE) {
1454 if (netif_msg_probe(tp)) 1453 if (netif_msg_probe(tp))
1455 dev_printk(KERN_ERR, &pdev->dev, 1454 dev_err(&pdev->dev,
1456 "Invalid PCI region size(s), aborting\n"); 1455 "Invalid PCI region size(s), aborting\n");
1457 rc = -ENODEV; 1456 rc = -ENODEV;
1458 goto err_out_mwi; 1457 goto err_out_mwi;
@@ -1461,8 +1460,7 @@ rtl8169_init_board(struct pci_dev *pdev, struct net_device **dev_out,
1461 rc = pci_request_regions(pdev, MODULENAME); 1460 rc = pci_request_regions(pdev, MODULENAME);
1462 if (rc < 0) { 1461 if (rc < 0) {
1463 if (netif_msg_probe(tp)) 1462 if (netif_msg_probe(tp))
1464 dev_printk(KERN_ERR, &pdev->dev, 1463 dev_err(&pdev->dev, "could not request regions.\n");
1465 "could not request regions.\n");
1466 goto err_out_mwi; 1464 goto err_out_mwi;
1467 } 1465 }
1468 1466
@@ -1476,7 +1474,7 @@ rtl8169_init_board(struct pci_dev *pdev, struct net_device **dev_out,
1476 rc = pci_set_dma_mask(pdev, DMA_32BIT_MASK); 1474 rc = pci_set_dma_mask(pdev, DMA_32BIT_MASK);
1477 if (rc < 0) { 1475 if (rc < 0) {
1478 if (netif_msg_probe(tp)) 1476 if (netif_msg_probe(tp))
1479 dev_printk(KERN_ERR, &pdev->dev, 1477 dev_err(&pdev->dev,
1480 "DMA configuration failed.\n"); 1478 "DMA configuration failed.\n");
1481 goto err_out_free_res; 1479 goto err_out_free_res;
1482 } 1480 }
@@ -1488,8 +1486,7 @@ rtl8169_init_board(struct pci_dev *pdev, struct net_device **dev_out,
1488 ioaddr = ioremap(pci_resource_start(pdev, 1), R8169_REGS_SIZE); 1486 ioaddr = ioremap(pci_resource_start(pdev, 1), R8169_REGS_SIZE);
1489 if (ioaddr == NULL) { 1487 if (ioaddr == NULL) {
1490 if (netif_msg_probe(tp)) 1488 if (netif_msg_probe(tp))
1491 dev_printk(KERN_ERR, &pdev->dev, 1489 dev_err(&pdev->dev, "cannot remap MMIO, aborting\n");
1492 "cannot remap MMIO, aborting\n");
1493 rc = -EIO; 1490 rc = -EIO;
1494 goto err_out_free_res; 1491 goto err_out_free_res;
1495 } 1492 }