diff options
author | Ian Abbott <abbotti@mev.co.uk> | 2012-09-14 17:34:30 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-09-17 05:09:09 -0700 |
commit | 604d66ce56ee8b31f32353006554dd6538feefb0 (patch) | |
tree | 6b4c4fdcce9d097ea0ac268e4466f92913557cb9 /drivers | |
parent | 6bc42c22289bb431d613082c869193ef16112ba3 (diff) | |
download | linux-3.10-604d66ce56ee8b31f32353006554dd6538feefb0.tar.gz linux-3.10-604d66ce56ee8b31f32353006554dd6538feefb0.tar.bz2 linux-3.10-604d66ce56ee8b31f32353006554dd6538feefb0.zip |
staging: comedi: ni_670x: remove spurious free_irq() call
This driver's comedi `detach` handler (`ni_670x_detach()`) calls
`free_irq()` but the driver doesn't call `request_irq()` anywhere.
Remove the spurious call.
Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Reviewed-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/staging/comedi/drivers/ni_670x.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/staging/comedi/drivers/ni_670x.c b/drivers/staging/comedi/drivers/ni_670x.c index fb83625065f..eac6dc047bb 100644 --- a/drivers/staging/comedi/drivers/ni_670x.c +++ b/drivers/staging/comedi/drivers/ni_670x.c @@ -228,7 +228,6 @@ static int __devinit ni_670x_attach_pci(struct comedi_device *dev, return ret; } dev->board_name = thisboard->name; - dev->irq = mite_irq(devpriv->mite); ret = comedi_alloc_subdevices(dev, 2); if (ret) @@ -293,8 +292,6 @@ static void ni_670x_detach(struct comedi_device *dev) mite_unsetup(devpriv->mite); mite_free(devpriv->mite); } - if (dev->irq) - free_irq(dev->irq, dev); } static struct comedi_driver ni_670x_driver = { |