mirror of
https://github.com/torvalds/linux.git
synced 2026-11-07 06:17:02 +01:00
ASoC: pcm6240: do not free an unrequested IRQ
The driver obtains an IRQ number from device tree but never requests an
IRQ handler for the PCM6240 device. Removing the device must not pass
that number to free_irq().
Leave IRQ ownership to a matching request path if one is added later.
Fixes: 1324eafd37 ("ASoc: PCM6240: Create PCM6240 Family driver code")
Cc: stable@vger.kernel.org
Assisted-by: LLM
Signed-off-by: Runyu Xiao <runyu.xiao@seu.edu.cn>
Link: https://patch.msgid.link/20260929095920.2092147-1-runyu.xiao@seu.edu.cn
Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
0bebef817d
commit
995b96380b
|
|
@ -2019,8 +2019,6 @@ static const struct regmap_config pcmdevice_i2c_regmap = {
|
|||
|
||||
static void pcmdevice_remove(struct pcmdevice_priv *pcm_dev)
|
||||
{
|
||||
if (pcm_dev->irq)
|
||||
free_irq(pcm_dev->irq, pcm_dev);
|
||||
mutex_destroy(&pcm_dev->codec_lock);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user