浏览代码

Staging: comedi: usbduxfast bugfix

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>
Frank Mori Hess 16 年之前
父节点
当前提交
3cd74e8693
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/staging/comedi/drivers/usbduxfast.c

+ 1 - 1
drivers/staging/comedi/drivers/usbduxfast.c

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