diff options
Diffstat (limited to 'drivers/net/8139cp.c')
-rw-r--r-- | drivers/net/8139cp.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/net/8139cp.c b/drivers/net/8139cp.c index f5223eca2f7b..e970e64bf966 100644 --- a/drivers/net/8139cp.c +++ b/drivers/net/8139cp.c | |||
@@ -1822,7 +1822,6 @@ static int cp_init_one (struct pci_dev *pdev, const struct pci_device_id *ent) | |||
1822 | void __iomem *regs; | 1822 | void __iomem *regs; |
1823 | resource_size_t pciaddr; | 1823 | resource_size_t pciaddr; |
1824 | unsigned int addr_len, i, pci_using_dac; | 1824 | unsigned int addr_len, i, pci_using_dac; |
1825 | u8 pci_rev; | ||
1826 | 1825 | ||
1827 | #ifndef MODULE | 1826 | #ifndef MODULE |
1828 | static int version_printed; | 1827 | static int version_printed; |
@@ -1830,13 +1829,11 @@ static int cp_init_one (struct pci_dev *pdev, const struct pci_device_id *ent) | |||
1830 | printk("%s", version); | 1829 | printk("%s", version); |
1831 | #endif | 1830 | #endif |
1832 | 1831 | ||
1833 | pci_read_config_byte(pdev, PCI_REVISION_ID, &pci_rev); | ||
1834 | |||
1835 | if (pdev->vendor == PCI_VENDOR_ID_REALTEK && | 1832 | if (pdev->vendor == PCI_VENDOR_ID_REALTEK && |
1836 | pdev->device == PCI_DEVICE_ID_REALTEK_8139 && pci_rev < 0x20) { | 1833 | pdev->device == PCI_DEVICE_ID_REALTEK_8139 && pdev->revision < 0x20) { |
1837 | dev_err(&pdev->dev, | 1834 | dev_err(&pdev->dev, |
1838 | "This (id %04x:%04x rev %02x) is not an 8139C+ compatible chip\n", | 1835 | "This (id %04x:%04x rev %02x) is not an 8139C+ compatible chip\n", |
1839 | pdev->vendor, pdev->device, pci_rev); | 1836 | pdev->vendor, pdev->device, pdev->revision); |
1840 | dev_err(&pdev->dev, "Try the \"8139too\" driver instead.\n"); | 1837 | dev_err(&pdev->dev, "Try the \"8139too\" driver instead.\n"); |
1841 | return -ENODEV; | 1838 | return -ENODEV; |
1842 | } | 1839 | } |