diff options
Diffstat (limited to 'drivers/net/8139cp.c')
-rw-r--r-- | drivers/net/8139cp.c | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/drivers/net/8139cp.c b/drivers/net/8139cp.c index 93b7c904bba9..d2150baa7e35 100644 --- a/drivers/net/8139cp.c +++ b/drivers/net/8139cp.c | |||
@@ -1836,11 +1836,10 @@ static int cp_init_one (struct pci_dev *pdev, const struct pci_device_id *ent) | |||
1836 | 1836 | ||
1837 | if (pdev->vendor == PCI_VENDOR_ID_REALTEK && | 1837 | if (pdev->vendor == PCI_VENDOR_ID_REALTEK && |
1838 | pdev->device == PCI_DEVICE_ID_REALTEK_8139 && pci_rev < 0x20) { | 1838 | pdev->device == PCI_DEVICE_ID_REALTEK_8139 && pci_rev < 0x20) { |
1839 | dev_printk(KERN_ERR, &pdev->dev, | 1839 | dev_err(&pdev->dev, |
1840 | "This (id %04x:%04x rev %02x) is not an 8139C+ compatible chip\n", | 1840 | "This (id %04x:%04x rev %02x) is not an 8139C+ compatible chip\n", |
1841 | pdev->vendor, pdev->device, pci_rev); | 1841 | pdev->vendor, pdev->device, pci_rev); |
1842 | dev_printk(KERN_ERR, &pdev->dev, | 1842 | dev_err(&pdev->dev, "Try the \"8139too\" driver instead.\n"); |
1843 | "Try the \"8139too\" driver instead.\n"); | ||
1844 | return -ENODEV; | 1843 | return -ENODEV; |
1845 | } | 1844 | } |
1846 | 1845 | ||
@@ -1878,13 +1877,12 @@ static int cp_init_one (struct pci_dev *pdev, const struct pci_device_id *ent) | |||
1878 | pciaddr = pci_resource_start(pdev, 1); | 1877 | pciaddr = pci_resource_start(pdev, 1); |
1879 | if (!pciaddr) { | 1878 | if (!pciaddr) { |
1880 | rc = -EIO; | 1879 | rc = -EIO; |
1881 | dev_printk(KERN_ERR, &pdev->dev, "no MMIO resource\n"); | 1880 | dev_err(&pdev->dev, "no MMIO resource\n"); |
1882 | goto err_out_res; | 1881 | goto err_out_res; |
1883 | } | 1882 | } |
1884 | if (pci_resource_len(pdev, 1) < CP_REGS_SIZE) { | 1883 | if (pci_resource_len(pdev, 1) < CP_REGS_SIZE) { |
1885 | rc = -EIO; | 1884 | rc = -EIO; |
1886 | dev_printk(KERN_ERR, &pdev->dev, | 1885 | dev_err(&pdev->dev, "MMIO resource (%llx) too small\n", |
1887 | "MMIO resource (%llx) too small\n", | ||
1888 | (unsigned long long)pci_resource_len(pdev, 1)); | 1886 | (unsigned long long)pci_resource_len(pdev, 1)); |
1889 | goto err_out_res; | 1887 | goto err_out_res; |
1890 | } | 1888 | } |
@@ -1899,13 +1897,13 @@ static int cp_init_one (struct pci_dev *pdev, const struct pci_device_id *ent) | |||
1899 | 1897 | ||
1900 | rc = pci_set_dma_mask(pdev, DMA_32BIT_MASK); | 1898 | rc = pci_set_dma_mask(pdev, DMA_32BIT_MASK); |
1901 | if (rc) { | 1899 | if (rc) { |
1902 | dev_printk(KERN_ERR, &pdev->dev, | 1900 | dev_err(&pdev->dev, |
1903 | "No usable DMA configuration, aborting.\n"); | 1901 | "No usable DMA configuration, aborting.\n"); |
1904 | goto err_out_res; | 1902 | goto err_out_res; |
1905 | } | 1903 | } |
1906 | rc = pci_set_consistent_dma_mask(pdev, DMA_32BIT_MASK); | 1904 | rc = pci_set_consistent_dma_mask(pdev, DMA_32BIT_MASK); |
1907 | if (rc) { | 1905 | if (rc) { |
1908 | dev_printk(KERN_ERR, &pdev->dev, | 1906 | dev_err(&pdev->dev, |
1909 | "No usable consistent DMA configuration, " | 1907 | "No usable consistent DMA configuration, " |
1910 | "aborting.\n"); | 1908 | "aborting.\n"); |
1911 | goto err_out_res; | 1909 | goto err_out_res; |
@@ -1918,8 +1916,7 @@ static int cp_init_one (struct pci_dev *pdev, const struct pci_device_id *ent) | |||
1918 | regs = ioremap(pciaddr, CP_REGS_SIZE); | 1916 | regs = ioremap(pciaddr, CP_REGS_SIZE); |
1919 | if (!regs) { | 1917 | if (!regs) { |
1920 | rc = -EIO; | 1918 | rc = -EIO; |
1921 | dev_printk(KERN_ERR, &pdev->dev, | 1919 | dev_err(&pdev->dev, "Cannot map PCI MMIO (%lx@%lx)\n", |
1922 | "Cannot map PCI MMIO (%llx@%llx)\n", | ||
1923 | (unsigned long long)pci_resource_len(pdev, 1), | 1920 | (unsigned long long)pci_resource_len(pdev, 1), |
1924 | (unsigned long long)pciaddr); | 1921 | (unsigned long long)pciaddr); |
1925 | goto err_out_res; | 1922 | goto err_out_res; |