vgabios: Rename vgatables.c to stdvgamodes.c.
[seabios.git] / src / shadow.c
index ece7d97d522005ffa2e93d538e6b5b54aeb81944..c0c8cc21151d225d7a8e2daffedfca78e7f7c7f3 100644 (file)
@@ -117,8 +117,8 @@ make_bios_writable(void)
 
     // At this point, statically allocated variables can't be written,
     // so do this search manually.
-    int bdf, max;
-    foreachbdf_in_bus(bdf, max, 0) {
+    int bdf;
+    foreachbdf(bdf, 0) {
         u32 vendev = pci_config_readl(bdf, PCI_VENDOR_ID);
         u16 vendor = vendev & 0xffff, device = vendev >> 16;
         if (vendor == PCI_VENDOR_ID_INTEL