diff options
author | Arvind Yadav <arvind.yadav.cs@gmail.com> | 2017-10-06 23:55:56 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-10-18 15:45:48 +0200 |
commit | 526739265e5eb984f6f7114b17e63c5654ca1b93 (patch) | |
tree | f5f6b31fc171bd1ffdd3a2517d759a7ec54d21b6 | |
parent | 0cb7e343dec26a896d954419022c5ff1510d5aea (diff) | |
download | op-kernel-dev-526739265e5eb984f6f7114b17e63c5654ca1b93.zip op-kernel-dev-526739265e5eb984f6f7114b17e63c5654ca1b93.tar.gz |
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 <arvind.yadav.cs@gmail.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/staging/comedi/drivers/dt282x.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/staging/comedi/drivers/dt282x.c b/drivers/staging/comedi/drivers/dt282x.c index d5295bb..217a4b8 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) |