Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 175094
b: refs/heads/master
c: 446176a
h: refs/heads/master
v: v3
  • Loading branch information
Klaas van Gend authored and Greg Kroah-Hartman committed Dec 11, 2009
1 parent 64d32d7 commit a93af1a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 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: bacf58a80330b540b5156aa27b9a796b6b3baae2
refs/heads/master: 446176a7430f4dc311cda2200cd94336acbd0a6e
14 changes: 5 additions & 9 deletions trunk/drivers/staging/comedi/drivers/multiq3.c
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,8 @@ static int multiq3_ao_insn_read(struct comedi_device *dev,
int i;
int chan = CR_CHAN(insn->chanspec);

for (i = 0; i < insn->n; i++) {
for (i = 0; i < insn->n; i++)
data[i] = devpriv->ao_readback[chan];
}

return i;
}
Expand Down Expand Up @@ -262,11 +261,10 @@ static int multiq3_attach(struct comedi_device *dev,
dev->iobase = iobase;

irq = it->options[1];
if (irq) {
if (irq)
printk("comedi%d: irq = %u ignored\n", dev->minor, irq);
} else {
else
printk("comedi%d: no irq\n", dev->minor);
}
dev->board_name = "multiq3";
result = alloc_subdevices(dev, 5);
if (result < 0)
Expand Down Expand Up @@ -332,12 +330,10 @@ static int multiq3_detach(struct comedi_device *dev)
{
printk("comedi%d: multiq3: remove\n", dev->minor);

if (dev->iobase) {
if (dev->iobase)
release_region(dev->iobase, MULTIQ3_SIZE);
}
if (dev->irq) {
if (dev->irq)
free_irq(dev->irq, dev);
}

return 0;
}

0 comments on commit a93af1a

Please sign in to comment.