Decouple BAR reading from pci device init, handle errors gracefully
Pcidev_init() now returns struct pci_device * instead of a BAR stored in
PCI config space. This allows for real error checking instead of having
exit(1) everywhere in pcidev.c.
Thanks to Niklas Söderlund for coming up with the original error
handling patch which was slightly modified and folded into this patch.
Move the declaration of struct pci_device in programmer.h before the
Corresponding to flashrom svn r1644.
Signed-off-by: Carl-Daniel Hailfinger <firstname.lastname@example.org>
Acked-by: Stefan Tauner <email@example.com>
13 files changed