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 861d898..625dde7 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]);
        }