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 --- ogp_spi.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'ogp_spi.c') diff --git a/ogp_spi.c b/ogp_spi.c index fb52a8c..6932f06 100644 --- a/ogp_spi.c +++ b/ogp_spi.c @@ -120,8 +120,7 @@ int ogp_spi_init(void) get_io_perms(); - io_base_addr = pcidev_init(PCI_VENDOR_ID_OGP, PCI_BASE_ADDRESS_0, - ogp_spi); + io_base_addr = pcidev_init(PCI_BASE_ADDRESS_0, ogp_spi); ogp_spibar = physmap("OGP registers", io_base_addr, 4096); -- cgit v1.1