aboutsummaryrefslogtreecommitdiff
path: root/src/floppy.c
diff options
context:
space:
mode:
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);
}