summaryrefslogtreecommitdiffstats
path: root/nic3com.c
diff options
context:
space:
mode:
authorCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2011-03-07 01:08:09 +0000
committerCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2011-03-07 01:08:09 +0000
commit73bc350c7595acf86596eb95435e51de7e9bcae9 (patch)
tree381d046fea47f794966eae15695917e0f19c0eba /nic3com.c
parent67ede32af7159d9aec7ecd2c47be3ccf84ef83d7 (diff)
downloadflashrom-73bc350c7595acf86596eb95435e51de7e9bcae9.zip
flashrom-73bc350c7595acf86596eb95435e51de7e9bcae9.tar.gz
Simplify pcidev_init by killing the vendorid parameter which was pretty useless anyway since it was present in the pcidevs parameter as well
This also allows us to handle multiple programmers with different vendor IDs in the same driver. Fix compilation of flashrom with only the nicrealtek driver. Corresponding to flashrom svn r1274. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Michael Karcher <flashrom@mkarcher.dialup.fu-berlin.de>
Diffstat (limited to 'nic3com.c')
-rw-r--r--nic3com.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/nic3com.c b/nic3com.c
index 0eb781a..d39ee71 100644
--- a/nic3com.c
+++ b/nic3com.c
@@ -59,8 +59,7 @@ int nic3com_init(void)
{
get_io_perms();
- io_base_addr = pcidev_init(PCI_VENDOR_ID_3COM, PCI_BASE_ADDRESS_0,
- nics_3com);
+ io_base_addr = pcidev_init(PCI_BASE_ADDRESS_0, nics_3com);
id = pcidev_dev->device_id;
OpenPOWER on IntegriCloud