From c5e82ca5e3ba7cd154c0e8afc19859564fc36dab Mon Sep 17 00:00:00 2001 From: Bert Vermeulen Date: Fri, 13 Jul 2012 02:30:42 +0200 Subject: [PATCH] fx2lafw: device scan fixes --- hardware/fx2lafw/fx2lafw.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hardware/fx2lafw/fx2lafw.c b/hardware/fx2lafw/fx2lafw.c index 31581ee6..bdc6b423 100644 --- a/hardware/fx2lafw/fx2lafw.c +++ b/hardware/fx2lafw/fx2lafw.c @@ -471,10 +471,11 @@ static GSList *hw_scan(GSList *options) prof->vendor, prof->model, prof->model_version); if (!sdi) return 0; + sdi->driver = fdi; /* Fill in probelist according to this device's profile. */ num_logic_probes = prof->dev_caps & DEV_CAPS_16BIT ? 16 : 8; - for (j = 0; i < num_logic_probes; j++) { + for (j = 0; j < num_logic_probes; j++) { if (!(probe = sr_probe_new(j, SR_PROBE_LOGIC, TRUE, probe_names[j]))) return 0;