- if (pci_config_readw(bdf, PCI_VENDOR_ID) == CONFIG_VGA_VID
- && pci_config_readw(bdf, PCI_DEVICE_ID) == CONFIG_VGA_DID)
+ if ((pci_config_readw(bdf, PCI_VENDOR_ID)
+ == GET_GLOBAL(rom_pci_data.vendor))
+ && (pci_config_readw(bdf, PCI_DEVICE_ID)
+ == GET_GLOBAL(rom_pci_data.device)))