[pci] Make driver PCI ID a property of the PCI device

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown
2011-02-12 01:11:57 +00:00
parent abb5590b29
commit 5bde349e55
45 changed files with 77 additions and 107 deletions

View File

@@ -810,7 +810,7 @@ static int tlan_probe ( struct nic *nic, struct pci_device *pci ) {
priv->vendor_id = pci->vendor;
priv->dev_id = pci->device;
priv->nic_name = pci->driver_name;
priv->nic_name = pci->id->name;
priv->eoc = 0;
err = 0;
@@ -821,10 +821,10 @@ static int tlan_probe ( struct nic *nic, struct pci_device *pci ) {
(u8 *) & nic->node_addr[i]);
if (err) {
printf ( "TLAN: %s: Error reading MAC from eeprom: %d\n",
pci->driver_name, err);
pci->id->name, err);
} else {
DBG ( "%s: %s at ioaddr %#lX, ",
pci->driver_name, eth_ntoa ( nic->node_addr ), pci->ioaddr );
pci->id->name, eth_ntoa ( nic->node_addr ), pci->ioaddr );
}
priv->tlanRev = TLan_DioRead8(BASE, TLAN_DEF_REVISION);