]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: comedi: multiq3: board does not use interrupts
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Tue, 9 Apr 2013 23:28:35 +0000 (16:28 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 11 Apr 2013 19:47:53 +0000 (12:47 -0700)
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>
drivers/staging/comedi/drivers/multiq3.c

index fe94a62de4383ed8ed5c65c4363529dd5a14afab..056689fc11c532f1e5fa8fe5e910e9a21f1f4761 100644 (file)
@@ -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
  */
 
@@ -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];
@@ -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;
@@ -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 = {