Staging: comedi: usbduxfast bugfix
authorFrank Mori Hess <fmhess@users.sourceforge.net>
Sat, 6 Dec 2008 15:43:23 +0000 (15:43 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 3 Apr 2009 21:53:51 +0000 (14:53 -0700)
Fixed bug in firmware loading with multiple usbduxfast boards.

From: Frank Mori Hess <fmhess@users.sourceforge.net>
Cc: David Schleef <ds@schleef.org>
Cc: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/comedi/drivers/usbduxfast.c

index 861d8989a49118df361ca7c3ac0898b665f5b139..625dde7e198da1f0c5c2e7708112064939ee5139 100644 (file)
@@ -1715,7 +1715,7 @@ static int usbduxfast_attach(comedi_device *dev, comedi_devconfig *it)
        /* trying to upload the firmware into the chip */
        if (comedi_aux_data(it->options, 0) &&
                it->options[COMEDI_DEVCONF_AUX_DATA_LENGTH]) {
-               read_firmware(usbduxfastsub,
+               read_firmware(&usbduxfastsub[index],
                        comedi_aux_data(it->options, 0),
                        it->options[COMEDI_DEVCONF_AUX_DATA_LENGTH]);
        }