diff options
| author | Michael Brown | 2011-02-12 02:11:57 +0100 |
|---|---|---|
| committer | Michael Brown | 2011-02-17 02:25:12 +0100 |
| commit | 5bde349e55640b2d21fbe0f4f53edabe6878eb91 (patch) | |
| tree | 6e99ca19a9ebfe68ddb06f353d06154651d1f635 /src/drivers/bus | |
| parent | [pci] Replace pci_max_bus() with pci_num_bus() (diff) | |
| download | ipxe-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/bus')
| -rw-r--r-- | src/drivers/bus/pci.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/drivers/bus/pci.c b/src/drivers/bus/pci.c index a30fcc723..4d77dfe56 100644 --- a/src/drivers/bus/pci.c +++ b/src/drivers/bus/pci.c @@ -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; |
