]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ASoC: codec: rt298: Use devm_request_threaded_irq to manage IRQ lifetime and fix...
authorHariKrishna Sagala <hariconscious@gmail.com>
Wed, 17 Dec 2025 10:43:58 +0000 (16:13 +0530)
committerMark Brown <broonie@kernel.org>
Wed, 17 Dec 2025 12:04:33 +0000 (12:04 +0000)
commit3a4e4e0003678a87600e82d02c9522af282a5c0b
treebe6bd3378e6f2f8fc183bca9499f4c3aae070f22
parentdab6b6f5fc5aabd3248bdea4d6e200a04b309fd2
ASoC: codec: rt298: Use devm_request_threaded_irq to manage IRQ lifetime and fix smatch warning

Replace manual "request_threaded_irq()" with the device managed
"devm_request_threaded_irq" to manage the IRQ lifetime and also
it removes the smatch reported warning.
Remove the manual "free_irq()" in the "remove" function as free_irq
is tied to device teardown.

Signed-off-by: HariKrishna Sagala <hariconscious@gmail.com>
Link: https://patch.msgid.link/20251217104356.60839-3-hariconscious@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/rt298.c