From 40446eef1b52599a14b19552f5843302f38c1212 Mon Sep 17 00:00:00 2001 From: Carl-Daniel Hailfinger Date: Mon, 7 Mar 2011 01:08:09 +0000 Subject: Remove vendorid parameter from pcidev_init() 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 Acked-by: Michael Karcher --- atahpt.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'atahpt.c') diff --git a/atahpt.c b/atahpt.c index eac056e..82b430d 100644 --- a/atahpt.c +++ b/atahpt.c @@ -44,8 +44,7 @@ int atahpt_init(void) get_io_perms(); - io_base_addr = pcidev_init(PCI_VENDOR_ID_HPT, PCI_BASE_ADDRESS_4, - ata_hpt); + io_base_addr = pcidev_init(PCI_BASE_ADDRESS_4, ata_hpt); /* Enable flash access. */ reg32 = pci_read_long(pcidev_dev, REG_FLASH_ACCESS); -- cgit v1.1