From: Ian Abbott Date: Fri, 14 Sep 2012 16:34:30 +0000 (+0100) Subject: staging: comedi: ni_670x: remove spurious free_irq() call X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=604d66ce56ee8b31f32353006554dd6538feefb0;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 Reviewed-by: H Hartley Sweeten Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/comedi/drivers/ni_670x.c b/drivers/staging/comedi/drivers/ni_670x.c index fb83625065f5..eac6dc047bb0 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 = {