diff options
author | hailfinger <hailfinger@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1> | 2010-11-10 03:22:39 +0000 |
---|---|---|
committer | hailfinger <hailfinger@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1> | 2010-11-10 03:22:39 +0000 |
commit | 39d09a676b29a34a890a3c8a8a78d22cde8208d9 (patch) | |
tree | 7d0939e37c2027618eeb7813bd2c61a3b2dd10e8 | |
parent | f02c1ba9732d033e5ae084d0a46c60bacc7705d5 (diff) | |
download | flashrom-39d09a676b29a34a890a3c8a8a78d22cde8208d9.tar.gz |
ft2232_spi ftdi_usb_open() is called with the constant FTDI_VID vendor
ID. Fix it by using the programmer-type-dependent ft2232_vid variable,
to allow programmers with other vendor IDs.
Signed-off-by: Alex Badea <vamposdecampos@gmail.com>
Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@1230 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
-rw-r--r-- | ft2232_spi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ft2232_spi.c b/ft2232_spi.c index 86f3b4a..91eb9e4 100644 --- a/ft2232_spi.c +++ b/ft2232_spi.c @@ -179,7 +179,7 @@ int ft2232_spi_init(void) return EXIT_FAILURE; // TODO } - f = ftdi_usb_open(ftdic, FTDI_VID, ft2232_type); + f = ftdi_usb_open(ftdic, ft2232_vid, ft2232_type); if (f < 0 && f != -5) { msg_perr("Unable to open FTDI device: %d (%s)\n", f, |