From 3f4e1e8efc5b700473f1920e92b521cb0945a6e3 Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Sun, 29 Nov 2015 13:17:57 -0700 Subject: dm: pci: video: Convert video and pci_rom to use DM PCI API Adjust these files to use the driver-model PCI API instead of the legacy functions. Signed-off-by: Simon Glass Acked-by: Anatolij Gustschin Reviewed-by: Bin Meng Tested-by: Bin Meng --- arch/x86/cpu/ivybridge/gma.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'arch/x86') diff --git a/arch/x86/cpu/ivybridge/gma.c b/arch/x86/cpu/ivybridge/gma.c index 695578b73c..85a09c64b6 100644 --- a/arch/x86/cpu/ivybridge/gma.c +++ b/arch/x86/cpu/ivybridge/gma.c @@ -756,8 +756,8 @@ int gma_func0_init(struct udevice *dev, const void *blob, int node) #ifdef CONFIG_VIDEO start = get_timer(0); - ret = pci_run_vga_bios(dm_pci_get_bdf(dev), int15_handler, - PCI_ROM_USE_NATIVE | PCI_ROM_ALLOW_FALLBACK); + ret = dm_pci_run_vga_bios(dev, int15_handler, + PCI_ROM_USE_NATIVE | PCI_ROM_ALLOW_FALLBACK); debug("BIOS ran in %lums\n", get_timer(start)); #endif /* Post VBIOS init */ -- cgit v1.2.1