Skip to content

Commit

Permalink
staging: comedi: multiq3: board does not use interrupts
Browse files Browse the repository at this point in the history
This driver does not use interruptes. Don't bother parsing the
configuration option from "comedi_config".

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
H Hartley Sweeten authored and Greg Kroah-Hartman committed Apr 11, 2013
1 parent 35626c2 commit cf00515
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions drivers/staging/comedi/drivers/multiq3.c
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,6 @@ static void encoder_reset(struct comedi_device *dev)

/*
options[0] - I/O port
options[1] - irq
options[2] - number of encoder chips installed
*/

Expand All @@ -234,7 +233,6 @@ static int multiq3_attach(struct comedi_device *dev,
struct multiq3_private *devpriv;
int result = 0;
unsigned long iobase;
unsigned int irq;
struct comedi_subdevice *s;

iobase = it->options[0];
Expand All @@ -246,13 +244,6 @@ static int multiq3_attach(struct comedi_device *dev,

dev->iobase = iobase;

irq = it->options[1];
if (irq)
printk(KERN_WARNING "comedi%d: irq = %u ignored\n",
dev->minor, irq);
else
printk(KERN_WARNING "comedi%d: no irq\n", dev->minor);

result = comedi_alloc_subdevices(dev, 5);
if (result)
return result;
Expand Down Expand Up @@ -318,8 +309,6 @@ static void multiq3_detach(struct comedi_device *dev)
{
if (dev->iobase)
release_region(dev->iobase, MULTIQ3_SIZE);
if (dev->irq)
free_irq(dev->irq, dev);
}

static struct comedi_driver multiq3_driver = {
Expand Down

0 comments on commit cf00515

Please sign in to comment.