mirror of
https://github.com/ipxe/ipxe
synced 2025-12-23 13:30:57 +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:
@@ -192,9 +192,9 @@ static int pci_probe ( struct pci_device *pci ) {
|
||||
( id->device != pci->device ) )
|
||||
continue;
|
||||
pci->driver = driver;
|
||||
pci->driver_name = id->name;
|
||||
DBGC ( pci, "...using driver %s\n", pci->driver_name );
|
||||
if ( ( rc = driver->probe ( pci, id ) ) != 0 ) {
|
||||
pci->id = id;
|
||||
DBGC ( pci, "...using driver %s\n", pci->id->name );
|
||||
if ( ( rc = driver->probe ( pci ) ) != 0 ) {
|
||||
DBGC ( pci, "......probe failed: %s\n",
|
||||
strerror ( rc ) );
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user