diff options
author | Sergei Shtylyov <sshtylyov@ru.mvista.com> | 2011-02-28 14:57:33 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-02-28 14:57:33 -0500 |
commit | ff938e43d39e926de74b32a3656c190f979ab642 (patch) | |
tree | b914a3f7cc9923013133462a55f5dbe9e7a7799c /drivers/net/atl1e | |
parent | 63d8ea7f93e1fb9d1aa9509ab3e1a71199245c80 (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/atl1e')
-rw-r--r-- | drivers/net/atl1e/atl1e_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/atl1e/atl1e_main.c b/drivers/net/atl1e/atl1e_main.c index 21f501184023..1ff001a8270c 100644 --- a/drivers/net/atl1e/atl1e_main.c +++ b/drivers/net/atl1e/atl1e_main.c | |||
@@ -547,8 +547,8 @@ static int __devinit atl1e_sw_init(struct atl1e_adapter *adapter) | |||
547 | hw->device_id = pdev->device; | 547 | hw->device_id = pdev->device; |
548 | hw->subsystem_vendor_id = pdev->subsystem_vendor; | 548 | hw->subsystem_vendor_id = pdev->subsystem_vendor; |
549 | hw->subsystem_id = pdev->subsystem_device; | 549 | hw->subsystem_id = pdev->subsystem_device; |
550 | hw->revision_id = pdev->revision; | ||
550 | 551 | ||
551 | pci_read_config_byte(pdev, PCI_REVISION_ID, &hw->revision_id); | ||
552 | pci_read_config_word(pdev, PCI_COMMAND, &hw->pci_cmd_word); | 552 | pci_read_config_word(pdev, PCI_COMMAND, &hw->pci_cmd_word); |
553 | 553 | ||
554 | phy_status_data = AT_READ_REG(hw, REG_PHY_STATUS); | 554 | phy_status_data = AT_READ_REG(hw, REG_PHY_STATUS); |