aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/jme.c
diff options
context:
space:
mode:
authorSergei Shtylyov <sshtylyov@ru.mvista.com>2011-02-28 14:57:33 -0500
committerDavid S. Miller <davem@davemloft.net>2011-02-28 14:57:33 -0500
commitff938e43d39e926de74b32a3656c190f979ab642 (patch)
treeb914a3f7cc9923013133462a55f5dbe9e7a7799c /drivers/net/jme.c
parent63d8ea7f93e1fb9d1aa9509ab3e1a71199245c80 (diff)
net: use pci_dev->revision, again
Several more network drivers that read the device's revision ID from the PCI configuration register were merged after the commit 44c10138fd4bbc4b6d6bff0873c24902f2a9da65 (PCI: Change all drivers to use pci_device->revision), so it's time to do another pass of conversion to using the 'revision' field of 'struct pci_dev'... Signed-off-by: Sergei Shtylyov <sshtylyov@ru.mvista.com> Acked-by: "John W. Linville" <linville@tuxdriver.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/jme.c')
-rw-r--r--drivers/net/jme.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/jme.c b/drivers/net/jme.c
index 5b441b75e138..f690474f4409 100644
--- a/drivers/net/jme.c
+++ b/drivers/net/jme.c
@@ -3095,7 +3095,7 @@ jme_init_one(struct pci_dev *pdev,
3095 3095
3096 jme_clear_pm(jme); 3096 jme_clear_pm(jme);
3097 jme_set_phyfifo_5level(jme); 3097 jme_set_phyfifo_5level(jme);
3098 pci_read_config_byte(pdev, PCI_REVISION_ID, &jme->pcirev); 3098 jme->pcirev = pdev->revision;
3099 if (!jme->fpgaver) 3099 if (!jme->fpgaver)
3100 jme_phy_init(jme); 3100 jme_phy_init(jme);
3101 jme_phy_off(jme); 3101 jme_phy_off(jme);