summaryrefslogtreecommitdiffstats
path: root/satasii.c
diff options
context:
space:
mode:
authorCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2009-08-12 13:32:56 +0000
committerCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2009-08-12 13:32:56 +0000
commit3382bc9bd00cc8ab61f0bca35e48cefaa49ebb25 (patch)
tree07d03ad8b91541f09b13ac709ef85e93cbc339ca /satasii.c
parent0f1df3eab7ba830563167518230d82729dd64e26 (diff)
downloadflashrom-3382bc9bd00cc8ab61f0bca35e48cefaa49ebb25.zip
flashrom-3382bc9bd00cc8ab61f0bca35e48cefaa49ebb25.tar.gz
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>
Diffstat (limited to 'satasii.c')
-rw-r--r--satasii.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/satasii.c b/satasii.c
index b576749..2564436 100644
--- a/satasii.c
+++ b/satasii.c
@@ -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;
OpenPOWER on IntegriCloud