aboutsummaryrefslogtreecommitdiffstats
path: root/src/drivers/net/sundance.c
diff options
context:
space:
mode:
authorMichael Brown <mcb30@ipxe.org>2015-03-03 00:08:41 +0000
committerMichael Brown <mcb30@ipxe.org>2015-03-03 00:08:41 +0000
commite399fc0d216533a5351631b6bc8bb97c898bc877 (patch)
treefa12db6c02f61eb68da83b8b02b7c1683174c6e4 /src/drivers/net/sundance.c
parent06c8a27b742fab53c5072b40b32018eae12eca57 (diff)
downloadipxe-e399fc0d216533a5351631b6bc8bb97c898bc877.tar.gz
[pci] Rewrite unrelicensable portions of pci.h
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/drivers/net/sundance.c')
-rw-r--r--src/drivers/net/sundance.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drivers/net/sundance.c b/src/drivers/net/sundance.c
index eef7c9c7..9127fa2c 100644
--- a/src/drivers/net/sundance.c
+++ b/src/drivers/net/sundance.c
@@ -601,7 +601,7 @@ static int sundance_probe ( struct nic *nic, struct pci_device *pci ) {
sdc->nic_name = pci->id->name;
sdc->mtu = mtu;
- pci_read_config_byte(pci, PCI_REVISION_ID, &sdc->pci_rev_id);
+ pci_read_config_byte(pci, PCI_REVISION, &sdc->pci_rev_id);
DBG ( "Device revision id: %hx\n", sdc->pci_rev_id );