diff options
author | Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> | 2011-03-07 01:08:09 +0000 |
---|---|---|
committer | Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> | 2011-03-07 01:08:09 +0000 |
commit | 73bc350c7595acf86596eb95435e51de7e9bcae9 (patch) | |
tree | 381d046fea47f794966eae15695917e0f19c0eba /nic3com.c | |
parent | 67ede32af7159d9aec7ecd2c47be3ccf84ef83d7 (diff) | |
download | flashrom-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.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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; |