]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ASoC: codec: rt274: Use devm_request_threaded_irq to manage IRQ lifetime and fix...
authorHariKrishna Sagala <hariconscious@gmail.com>
Fri, 21 Nov 2025 14:09:43 +0000 (19:39 +0530)
committerMark Brown <broonie@kernel.org>
Sun, 14 Dec 2025 10:37:29 +0000 (19:37 +0900)
commitd00e80606e76233f4ae03486a9809c9edfe8b27e
tree4807e7da43ca4d34633b6ad2db5f2e7b23550524
parent774d075a80c652a0f35a5dd6f9e35cac5b7f6bdd
ASoC: codec: rt274: 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/20251121140940.40678-4-hariconscious@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/rt274.c