]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ASoC: codec: rt286: Use devm_request_threaded_irq to manage IRQ lifetime and fix...
authorHariKrishna Sagala <hariconscious@gmail.com>
Wed, 17 Dec 2025 05:44:59 +0000 (11:14 +0530)
committerMark Brown <broonie@kernel.org>
Thu, 18 Dec 2025 08:21:52 +0000 (08:21 +0000)
commit3622dc47a4b13e0ec86358c7b54a0b33bfcaa03c
tree686b33e7a2ae1a27c91c32a85b93d48b12ec554a
parent961f20faa4b950c449dc98fa95a056ef368a24fc
ASoC: codec: rt286: 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/20251217054458.38257-2-hariconscious@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/rt286.c