From: Arvind Yadav Date: Fri, 6 Oct 2017 18:25:56 +0000 (+0530) Subject: staging: comedi: dt282x: fix IRQ assignment for dev->irq. X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=526739265e5eb984f6f7114b17e63c5654ca1b93;p=openwrt%2Fstaging%2Fblogic.git staging: comedi: dt282x: fix IRQ assignment for dev->irq. Here, dev->irq is not assigned with irq. comedi_legacy_detach() is using dev->irq for release irq and dt282x_attach() is using dev->irq for initialize comedi_subdevice. Signed-off-by: Arvind Yadav Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/comedi/drivers/dt282x.c b/drivers/staging/comedi/drivers/dt282x.c index d5295bbdd28c..217a4b884689 100644 --- a/drivers/staging/comedi/drivers/dt282x.c +++ b/drivers/staging/comedi/drivers/dt282x.c @@ -1062,6 +1062,8 @@ static void dt282x_alloc_dma(struct comedi_device *dev, PAGE_SIZE, 0); if (!devpriv->dma) free_irq(irq_num, dev); + else + dev->irq = irq_num; } static void dt282x_free_dma(struct comedi_device *dev)