1
0
mirror of https://review.coreboot.org/flashrom.git synced 2025-07-02 22:43:17 +02:00

Use a common parameter variable for all programmers

This allows us to reduce #ifdef clauses a lot if we compile out some
programmers completely.

Corresponding to flashrom svn r679.

Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
This commit is contained in:
Carl-Daniel Hailfinger
2009-08-12 13:32:56 +00:00
parent 415e513d90
commit ef58a9ce3f
9 changed files with 54 additions and 62 deletions

View File

@ -58,7 +58,7 @@ int nic3com_init(void)
{
get_io_perms();
io_base_addr = pcidev_init(PCI_VENDOR_ID_3COM, nics_3com);
io_base_addr = pcidev_init(PCI_VENDOR_ID_3COM, nics_3com, programmer_param);
id = pcidev_dev->device_id;
/* 3COM 3C90xB cards need a special fixup. */
@ -94,7 +94,7 @@ int nic3com_shutdown(void)
OUTL(internal_conf, io_base_addr + INTERNAL_CONFIG);
}
free(pcidev_bdf);
free(programmer_param);
pci_cleanup(pacc);
release_io_perms();
return 0;