aboutsummaryrefslogtreecommitdiff
path: root/src/floppy.c
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2011-07-02 14:04:19 -0400
committerKevin O'Connor <kevin@koconnor.net>2011-07-02 14:04:19 -0400
commit0cd700562357525c2975c5786d34afc237487b2d (patch)
tree594b0fe6a17a7fcc81752aa095f6ade4c75bd0be /src/floppy.c
parentc1de91b3110cb163526784439e315d24b8e5311a (diff)
downloadseabios-0cd700562357525c2975c5786d34afc237487b2d.zip
seabios-0cd700562357525c2975c5786d34afc237487b2d.tar.gz
seabios-0cd700562357525c2975c5786d34afc237487b2d.tar.bz2
Convert pci_find_device/class to use 'struct pci_device'.
Diffstat (limited to 'src/floppy.c')
-rw-r--r--src/floppy.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/floppy.c b/src/floppy.c
index edc675d..8009af0 100644
--- a/src/floppy.c
+++ b/src/floppy.c
@@ -123,8 +123,8 @@ addFloppy(int floppyid, int ftype)
if (!drive_g)
return;
char *desc = znprintf(MAXDESCSIZE, "Floppy [drive %c]", 'A' + floppyid);
- int bdf = pci_find_class(PCI_CLASS_BRIDGE_ISA); /* isa-to-pci bridge */
- int prio = bootprio_find_fdc_device(bdf, PORT_FD_BASE, floppyid);
+ struct pci_device *pci = pci_find_class(PCI_CLASS_BRIDGE_ISA); /* isa-to-pci bridge */
+ int prio = bootprio_find_fdc_device(pci->bdf, PORT_FD_BASE, floppyid);
boot_add_floppy(drive_g, desc, prio);
}