Skip to content

Commit

Permalink
staging: comedi: c6xdigio: 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 c8c90a7 commit 731ff7e
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions drivers/staging/comedi/drivers/c6xdigio.c
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,6 @@ static void board_init(struct comedi_device *dev)

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

Expand All @@ -421,7 +420,6 @@ static int c6xdigio_attach(struct comedi_device *dev,
{
int result = 0;
unsigned long iobase;
unsigned int irq;
struct comedi_subdevice *s;

iobase = it->options[0];
Expand All @@ -439,13 +437,6 @@ static int c6xdigio_attach(struct comedi_device *dev,
/* Make sure that PnP ports get activated */
pnp_register_driver(&c6xdigio_pnp_driver);

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

s = &dev->subdevices[0];
/* pwm output subdevice */
s->type = COMEDI_SUBD_AO; /* Not sure what to put here */
Expand Down Expand Up @@ -489,8 +480,6 @@ static void c6xdigio_detach(struct comedi_device *dev)
{
if (dev->iobase)
release_region(dev->iobase, C6XDIGIO_SIZE);
if (dev->irq)
free_irq(dev->irq, dev);
pnp_unregister_driver(&c6xdigio_pnp_driver);
}

Expand Down

0 comments on commit 731ff7e

Please sign in to comment.