Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 363998
b: refs/heads/master
c: 849d1ea
h: refs/heads/master
v: v3
  • Loading branch information
H Hartley Sweeten authored and Greg Kroah-Hartman committed Apr 9, 2013
1 parent 55897b8 commit 0675d89
Show file tree
Hide file tree
Showing 2 changed files with 5 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: c5eb6eadec53012ddd820dbab686665b02313dca
refs/heads/master: 849d1ea4ae28e57557ad8901837d36aa2a760b5e
8 changes: 4 additions & 4 deletions trunk/drivers/staging/comedi/drivers/rti800.c
Original file line number Diff line number Diff line change
Expand Up @@ -311,10 +311,6 @@ static int rti800_attach(struct comedi_device *dev, struct comedi_devconfig *it)
inb(dev->iobase + RTI800_ADCHI);
outb(0, dev->iobase + RTI800_CLRFLAGS);

ret = comedi_alloc_subdevices(dev, 4);
if (ret)
return ret;

devpriv = kzalloc(sizeof(*devpriv), GFP_KERNEL);
if (!devpriv)
return -ENOMEM;
Expand All @@ -329,6 +325,10 @@ static int rti800_attach(struct comedi_device *dev, struct comedi_devconfig *it)
devpriv->dac1_coding = it->options[8];
devpriv->muxgain_bits = -1;

ret = comedi_alloc_subdevices(dev, 4);
if (ret)
return ret;

s = &dev->subdevices[0];
/* ai subdevice */
s->type = COMEDI_SUBD_AI;
Expand Down

0 comments on commit 0675d89

Please sign in to comment.