From: Frank Mori Hess Date: Sat, 6 Dec 2008 15:43:23 +0000 (+0000) Subject: Staging: comedi: usbduxfast bugfix X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=3cd74e8693678a463b944c358cdb22f7bee533ba;p=openwrt%2Fstaging%2Fblogic.git Staging: comedi: usbduxfast bugfix Fixed bug in firmware loading with multiple usbduxfast boards. From: Frank Mori Hess Cc: David Schleef Cc: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/comedi/drivers/usbduxfast.c b/drivers/staging/comedi/drivers/usbduxfast.c index 861d8989a491..625dde7e198d 100644 --- a/drivers/staging/comedi/drivers/usbduxfast.c +++ b/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 */ 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]); }