summaryrefslogtreecommitdiff
path: root/nic3com.c
diff options
context:
space:
mode:
authorhailfinger <hailfinger@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1>2009-08-12 13:32:56 +0000
committerhailfinger <hailfinger@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1>2009-08-12 13:32:56 +0000
commit3d303fd7d7c672976834b084c22cb52a99afb4d7 (patch)
tree07d03ad8b91541f09b13ac709ef85e93cbc339ca /nic3com.c
parent7c6fee75f5ada829230b1cb4570c6f35029ac49e (diff)
downloadflashrom-3d303fd7d7c672976834b084c22cb52a99afb4d7.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. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Stefan Reinauer <stepan@coresystems.de> git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@679 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'nic3com.c')
-rw-r--r--nic3com.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nic3com.c b/nic3com.c
index bdf7db2..574e540 100644
--- a/nic3com.c
+++ b/nic3com.c
@@ -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;