[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-17 01:25:12 +00:00
parent abb5590b29
commit 5bde349e55
45 changed files with 77 additions and 107 deletions
+3 -3
View File
@@ -675,7 +675,7 @@ static int velocity_probe( struct nic *nic, struct pci_device *pci)
struct mac_regs *regs;
printf("via-velocity.c: Found %s Vendor=0x%hX Device=0x%hX\n",
pci->driver_name, pci->vendor, pci->device);
pci->id->name, pci->vendor, pci->device);
/* point to private storage */
vptr = &vptx;
@@ -707,10 +707,10 @@ static int velocity_probe( struct nic *nic, struct pci_device *pci)
for (i = 0; i < 6; i++)
nic->node_addr[i] = readb(&regs->PAR[i]);
DBG ( "%s: %s at ioaddr %#hX\n", pci->driver_name, eth_ntoa ( nic->node_addr ),
DBG ( "%s: %s at ioaddr %#hX\n", pci->id->name, eth_ntoa ( nic->node_addr ),
(unsigned int) BASE );
velocity_get_options(&vptr->options, 0, pci->driver_name);
velocity_get_options(&vptr->options, 0, pci->id->name);
/*
* Mask out the options cannot be set to the chip