Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 126701
b: refs/heads/master
c: b1853a4
h: refs/heads/master
i:
  126699: ad240b0
v: v3
  • Loading branch information
Greg Kroah-Hartman committed Jan 6, 2009
1 parent 63e4d25 commit 8126a2c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 98f3c672b55cd246c62b763986a494152c7f2483
refs/heads/master: b1853a4f28db5b532542426965198171ef8ab6a0
6 changes: 2 additions & 4 deletions trunk/drivers/staging/comedi/drivers/dt9812.c
Original file line number Diff line number Diff line change
Expand Up @@ -769,8 +769,6 @@ static int dt9812_probe(struct usb_interface *interface,
* Seems like a configuration reset is necessary if driver is
* reloaded while device is attached
*/
int i;

usb_reset_configuration(dev->udev);
for (i = 0; i < 10; i++) {
retval = dt9812_read_info(dev, 1, &fw, sizeof(fw));
Expand Down Expand Up @@ -1060,7 +1058,7 @@ static int dt9812_attach(comedi_device *dev, comedi_devconfig *it)
s->subdev_flags = SDF_READABLE | SDF_GROUND;
s->n_chan = 0;
s->maxdata = 1;
s->range_table = 0;
s->range_table = NULL;
s->insn_read = &dt9812_ai_rinsn;

/* analog output subdevice */
Expand All @@ -1069,7 +1067,7 @@ static int dt9812_attach(comedi_device *dev, comedi_devconfig *it)
s->subdev_flags = SDF_WRITEABLE;
s->n_chan = 0;
s->maxdata = 1;
s->range_table = 0;
s->range_table = NULL;
s->insn_write = &dt9812_ao_winsn;
s->insn_read = &dt9812_ao_rinsn;

Expand Down

0 comments on commit 8126a2c

Please sign in to comment.