]> git.baikalelectronics.ru Git - kernel.git/commitdiff
media: cx25821: request_irq -> devm_request_irq
authorHans Verkuil <hverkuil-cisco@xs4all.nl>
Mon, 2 May 2022 07:17:06 +0000 (09:17 +0200)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Fri, 13 May 2022 09:02:22 +0000 (11:02 +0200)
Fixes smatch warning:

drivers/media/pci/cx25821/cx25821-alsa.c:768 cx25821_audio_initdev() warn: 'dev->pci->irq' from request_irq() not released on lines: 768.

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/pci/cx25821/cx25821-alsa.c

index 438fdcec6eac6156f65e24b8c0fd559a05755a16..a42f0c03a7ca869e5e8a77fce3c965dc82f4bf76 100644 (file)
@@ -728,8 +728,8 @@ static int cx25821_audio_initdev(struct cx25821_dev *dev)
 
        chip->irq = dev->pci->irq;
 
-       err = request_irq(dev->pci->irq, cx25821_irq,
-                         IRQF_SHARED, chip->dev->name, chip);
+       err = devm_request_irq(&dev->pci->dev, dev->pci->irq, cx25821_irq,
+                              IRQF_SHARED, chip->dev->name, chip);
 
        if (err < 0) {
                pr_err("ERROR %s: can't get IRQ %d for ALSA\n", chip->dev->name,