net: use pci_dev->revision, again
[jme.git] / jme.c
diff --git a/jme.c b/jme.c
index 5b441b7..f690474 100644 (file)
--- a/jme.c
+++ b/jme.c
@@ -3095,7 +3095,7 @@ jme_init_one(struct pci_dev *pdev,
 
        jme_clear_pm(jme);
        jme_set_phyfifo_5level(jme);
 
        jme_clear_pm(jme);
        jme_set_phyfifo_5level(jme);
-       pci_read_config_byte(pdev, PCI_REVISION_ID, &jme->pcirev);
+       jme->pcirev = pdev->revision;
        if (!jme->fpgaver)
                jme_phy_init(jme);
        jme_phy_off(jme);
        if (!jme->fpgaver)
                jme_phy_init(jme);
        jme_phy_off(jme);