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:
@ -47,7 +47,7 @@ int satasii_init(void)
|
||||
|
||||
get_io_perms();
|
||||
|
||||
pcidev_init(PCI_VENDOR_ID_SII, satas_sii);
|
||||
pcidev_init(PCI_VENDOR_ID_SII, satas_sii, programmer_param);
|
||||
id = pcidev_dev->device_id;
|
||||
|
||||
if ((id == 0x3132) || (id == 0x3124)) {
|
||||
@ -71,7 +71,7 @@ int satasii_init(void)
|
||||
|
||||
int satasii_shutdown(void)
|
||||
{
|
||||
free(pcidev_bdf);
|
||||
free(programmer_param);
|
||||
pci_cleanup(pacc);
|
||||
release_io_perms();
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user