mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 23:20:50 +07:00
ALSA: fm801: explicitly free IRQ line
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: 5618955c42
(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>
This commit is contained in:
parent
46325371b2
commit
e97e98c63b
@ -1165,6 +1165,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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user