dm: x86: pci: Adjust bios_run_on_x86() to use the DM PCI API
This function should take a struct udevice rather than pci_dev_t. Update it.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Tested-by: Bin Meng <bmeng.cn@gmail.com>
diff --git a/drivers/pci/pci_rom.c b/drivers/pci/pci_rom.c
index 8949ea8..2cb81b66 100644
--- a/drivers/pci/pci_rom.c
+++ b/drivers/pci/pci_rom.c
@@ -324,8 +324,8 @@
#ifdef CONFIG_X86
bios_set_interrupt_handler(0x15, int15_handler);
- bios_run_on_x86(dm_pci_get_bdf(dev), (unsigned long)ram,
- vesa_mode, &mode_info);
+ bios_run_on_x86(dev, (unsigned long)ram, vesa_mode,
+ &mode_info);
#endif
}
debug("Final vesa mode %#x\n", mode_info.video_mode);