mirror of
https://github.com/ipxe/ipxe
synced 2026-01-05 03:10:58 +03:00
[pci] Make driver PCI ID a property of the PCI device
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user