diff options
Diffstat (limited to 'drivers/net/pci-skeleton.c')
-rw-r--r-- | drivers/net/pci-skeleton.c | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/drivers/net/pci-skeleton.c b/drivers/net/pci-skeleton.c index 3388ee1313ea..e0e293964042 100644 --- a/drivers/net/pci-skeleton.c +++ b/drivers/net/pci-skeleton.c | |||
@@ -601,7 +601,7 @@ static int __devinit netdrv_init_board (struct pci_dev *pdev, | |||
601 | /* dev zeroed in alloc_etherdev */ | 601 | /* dev zeroed in alloc_etherdev */ |
602 | dev = alloc_etherdev (sizeof (*tp)); | 602 | dev = alloc_etherdev (sizeof (*tp)); |
603 | if (dev == NULL) { | 603 | if (dev == NULL) { |
604 | printk (KERN_ERR PFX "unable to alloc new ethernet\n"); | 604 | dev_err(&pdev->dev, "unable to alloc new ethernet\n"); |
605 | DPRINTK ("EXIT, returning -ENOMEM\n"); | 605 | DPRINTK ("EXIT, returning -ENOMEM\n"); |
606 | return -ENOMEM; | 606 | return -ENOMEM; |
607 | } | 607 | } |
@@ -631,14 +631,14 @@ static int __devinit netdrv_init_board (struct pci_dev *pdev, | |||
631 | 631 | ||
632 | /* make sure PCI base addr 0 is PIO */ | 632 | /* make sure PCI base addr 0 is PIO */ |
633 | if (!(pio_flags & IORESOURCE_IO)) { | 633 | if (!(pio_flags & IORESOURCE_IO)) { |
634 | printk (KERN_ERR PFX "region #0 not a PIO resource, aborting\n"); | 634 | dev_err(&pdev->dev, "region #0 not a PIO resource, aborting\n"); |
635 | rc = -ENODEV; | 635 | rc = -ENODEV; |
636 | goto err_out; | 636 | goto err_out; |
637 | } | 637 | } |
638 | 638 | ||
639 | /* make sure PCI base addr 1 is MMIO */ | 639 | /* make sure PCI base addr 1 is MMIO */ |
640 | if (!(mmio_flags & IORESOURCE_MEM)) { | 640 | if (!(mmio_flags & IORESOURCE_MEM)) { |
641 | printk (KERN_ERR PFX "region #1 not an MMIO resource, aborting\n"); | 641 | dev_err(&pdev->dev, "region #1 not an MMIO resource, aborting\n"); |
642 | rc = -ENODEV; | 642 | rc = -ENODEV; |
643 | goto err_out; | 643 | goto err_out; |
644 | } | 644 | } |
@@ -646,12 +646,12 @@ static int __devinit netdrv_init_board (struct pci_dev *pdev, | |||
646 | /* check for weird/broken PCI region reporting */ | 646 | /* check for weird/broken PCI region reporting */ |
647 | if ((pio_len < NETDRV_MIN_IO_SIZE) || | 647 | if ((pio_len < NETDRV_MIN_IO_SIZE) || |
648 | (mmio_len < NETDRV_MIN_IO_SIZE)) { | 648 | (mmio_len < NETDRV_MIN_IO_SIZE)) { |
649 | printk (KERN_ERR PFX "Invalid PCI region size(s), aborting\n"); | 649 | dev_err(&pdev->dev, "Invalid PCI region size(s), aborting\n"); |
650 | rc = -ENODEV; | 650 | rc = -ENODEV; |
651 | goto err_out; | 651 | goto err_out; |
652 | } | 652 | } |
653 | 653 | ||
654 | rc = pci_request_regions (pdev, "pci-skeleton"); | 654 | rc = pci_request_regions (pdev, MODNAME); |
655 | if (rc) | 655 | if (rc) |
656 | goto err_out; | 656 | goto err_out; |
657 | 657 | ||
@@ -663,7 +663,7 @@ static int __devinit netdrv_init_board (struct pci_dev *pdev, | |||
663 | /* ioremap MMIO region */ | 663 | /* ioremap MMIO region */ |
664 | ioaddr = ioremap (mmio_start, mmio_len); | 664 | ioaddr = ioremap (mmio_start, mmio_len); |
665 | if (ioaddr == NULL) { | 665 | if (ioaddr == NULL) { |
666 | printk (KERN_ERR PFX "cannot remap MMIO, aborting\n"); | 666 | dev_err(&pdev->dev, "cannot remap MMIO, aborting\n"); |
667 | rc = -EIO; | 667 | rc = -EIO; |
668 | goto err_out_free_res; | 668 | goto err_out_free_res; |
669 | } | 669 | } |
@@ -699,9 +699,10 @@ static int __devinit netdrv_init_board (struct pci_dev *pdev, | |||
699 | } | 699 | } |
700 | 700 | ||
701 | /* if unknown chip, assume array element #0, original RTL-8139 in this case */ | 701 | /* if unknown chip, assume array element #0, original RTL-8139 in this case */ |
702 | printk (KERN_DEBUG PFX "PCI device %s: unknown chip version, assuming RTL-8139\n", | 702 | dev_printk (KERN_DEBUG, &pdev->dev, |
703 | pci_name(pdev)); | 703 | "unknown chip version, assuming RTL-8139\n"); |
704 | printk (KERN_DEBUG PFX "PCI device %s: TxConfig = 0x%lx\n", pci_name(pdev), NETDRV_R32 (TxConfig)); | 704 | dev_printk (KERN_DEBUG, &pdev->dev, "TxConfig = 0x%lx\n", |
705 | NETDRV_R32 (TxConfig)); | ||
705 | tp->chipset = 0; | 706 | tp->chipset = 0; |
706 | 707 | ||
707 | match: | 708 | match: |