Push use of 'struct pci_device' to bootprio_find_pci_device().
[seabios.git] / src / boot.c
index 58fb70b590ee3f0968fb97d57eb23373b8772fb9..5c0e0bb508d88d3d32e18649f65893d5c47ad82b 100644 (file)
@@ -131,13 +131,13 @@ build_pci_path(char *buf, int max, const char *devname, struct pci_device *pci)
     return p;
 }
 
-int bootprio_find_pci_device(int bdf)
+int bootprio_find_pci_device(struct pci_device *pci)
 {
     if (!CONFIG_BOOTORDER)
         return -1;
     // Find pci device - for example: /pci@i0cf8/ethernet@5
     char desc[256];
-    build_pci_path(desc, sizeof(desc), "*", find_pci(bdf));
+    build_pci_path(desc, sizeof(desc), "*", pci);
     return find_prio(desc);
 }