summaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2015-12-18 22:14:10 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-05-10 11:25:49 +0300
commitd692ef8ce6753ad12561361495fac8366527103e (patch)
treeff6f326e75e5d83580ffff8a286ae422d5d4248c /sound
parent82ff45e06d4894333b0e0bb1ae5ba9aa98b42e67 (diff)
downloadlinux-d692ef8ce6753ad12561361495fac8366527103e.tar.xz
ALSA: fm801: explicitly free IRQ line
commit e97e98c63b43040732ad5d1f0b38ad4a8371c73a upstream. Otherwise we will have a warning on ->remove() since device is a PCI one. WARNING: CPU: 4 PID: 1411 at /home/andy/prj/linux/fs/proc/generic.c:575 remove_proc_entry+0x137/0x160() remove_proc_entry: removing non-empty directory 'irq/21', leaking at least 'snd_fm801' Fixes: 5618955c4269 (ALSA: fm801: move to pcim_* and devm_* functions) Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'sound')
-rw-r--r--sound/pci/fm801.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/pci/fm801.c b/sound/pci/fm801.c
index d6e89a6d0bb9..e4dc315dd570 100644
--- a/sound/pci/fm801.c
+++ b/sound/pci/fm801.c
@@ -1173,6 +1173,8 @@ static int snd_fm801_free(struct fm801 *chip)
cmdw |= 0x00c3;
fm801_writew(chip, IRQ_MASK, cmdw);
+ devm_free_irq(&chip->pci->dev, chip->irq, chip);
+
__end_hw:
#ifdef CONFIG_SND_FM801_TEA575X_BOOL
if (!(chip->tea575x_tuner & TUNER_DISABLED)) {