summaryrefslogtreecommitdiffstats
path: root/src/drivers/net/dmfe.c
diff options
context:
space:
mode:
authorMichael Brown2011-02-12 02:11:57 +0100
committerMichael Brown2011-02-17 02:25:12 +0100
commit5bde349e55640b2d21fbe0f4f53edabe6878eb91 (patch)
tree6e99ca19a9ebfe68ddb06f353d06154651d1f635 /src/drivers/net/dmfe.c
parent[pci] Replace pci_max_bus() with pci_num_bus() (diff)
downloadipxe-5bde349e55640b2d21fbe0f4f53edabe6878eb91.tar.gz
ipxe-5bde349e55640b2d21fbe0f4f53edabe6878eb91.tar.xz
ipxe-5bde349e55640b2d21fbe0f4f53edabe6878eb91.zip
[pci] Make driver PCI ID a property of the PCI device
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/drivers/net/dmfe.c')
-rw-r--r--src/drivers/net/dmfe.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/drivers/net/dmfe.c b/src/drivers/net/dmfe.c
index 6975ee7e..dd6c1dec 100644
--- a/src/drivers/net/dmfe.c
+++ b/src/drivers/net/dmfe.c
@@ -458,7 +458,7 @@ static int dmfe_probe ( struct nic *nic, struct pci_device *pci ) {
BASE = pci->ioaddr;
printf("dmfe.c: Found %s Vendor=0x%hX Device=0x%hX\n",
- pci->driver_name, pci->vendor, pci->device);
+ pci->id->name, pci->vendor, pci->device);
/* Read Chip revision */
pci_read_config_dword(pci, PCI_REVISION_ID, &dev_rev);
@@ -489,7 +489,8 @@ static int dmfe_probe ( struct nic *nic, struct pci_device *pci ) {
nic->node_addr[i] = db->srom[20 + i];
/* Print out some hardware info */
- DBG ( "%s: %s at ioaddr %4.4lx\n", pci->driver_name, eth_ntoa ( nic->node_addr ), BASE );
+ DBG ( "%s: %s at ioaddr %4.4lx\n",
+ pci->id->name, eth_ntoa ( nic->node_addr ), BASE );
/* Set the card as PCI Bus Master */
adjust_pci_device(pci);