Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 363997
b: refs/heads/master
c: c5eb6ea
h: refs/heads/master
i:
  363995: ef52962
v: v3
  • Loading branch information
H Hartley Sweeten authored and Greg Kroah-Hartman committed Apr 9, 2013
1 parent 78eea1e commit 55897b8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 19 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: 7b2234df5e2ec3fbb206fc4442099faf5859a177
refs/heads/master: c5eb6eadec53012ddd820dbab686665b02313dca
19 changes: 1 addition & 18 deletions trunk/drivers/staging/comedi/drivers/rti800.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Devices: [Analog Devices] RTI-800 (rti800), RTI-815 (rti815)
Configuration options:
[0] - I/O port base address
[1] - IRQ
[1] - IRQ (not supported / unused)
[2] - A/D reference
0 = differential
1 = pseudodifferential (common)
Expand Down Expand Up @@ -161,11 +161,6 @@ struct rti800_private {

#define RTI800_TIMEOUT 100

static irqreturn_t rti800_interrupt(int irq, void *dev)
{
return IRQ_HANDLED;
}

/* settling delay times in usec for different gains */
static const int gaindelay[] = { 10, 20, 40, 80 };

Expand Down Expand Up @@ -303,7 +298,6 @@ static int rti800_attach(struct comedi_device *dev, struct comedi_devconfig *it)
{
const struct rti800_board *board = comedi_board(dev);
struct rti800_private *devpriv;
unsigned int irq;
unsigned long iobase;
int ret;
struct comedi_subdevice *s;
Expand All @@ -317,15 +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);

irq = it->options[1];
if (irq) {
ret = request_irq(irq, rti800_interrupt, 0, dev->board_name,
dev);
if (ret < 0)
return ret;
dev->irq = irq;
}

ret = comedi_alloc_subdevices(dev, 4);
if (ret)
return ret;
Expand Down Expand Up @@ -425,8 +410,6 @@ static void rti800_detach(struct comedi_device *dev)
{
if (dev->iobase)
release_region(dev->iobase, RTI800_SIZE);
if (dev->irq)
free_irq(dev->irq, dev);
}

static struct comedi_driver rti800_driver = {
Expand Down

0 comments on commit 55897b8

Please sign in to comment.