- /* Initialize PCI access for flash enables */
- pacc = pci_alloc(); /* Get the pci_access structure */
- /* Set all options you want -- here we stick with the defaults */
- pci_init(pacc); /* Initialize the PCI library */
+ if (flashrom_pci_init())
+ return 1;
pci_scan_bus(pacc); /* We want to get the list of devices */