]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
counter: intel-qep: Use devm_mutex_init()
authorIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Wed, 20 May 2026 11:18:12 +0000 (14:18 +0300)
committerWilliam Breathitt Gray <wbg@kernel.org>
Wed, 27 May 2026 22:16:46 +0000 (07:16 +0900)
commitca815bb87064a8f68b00eaf8872ef0d4a33a5bf7
treebe9b88df4b1372b4923a95642093216e9bf7c60f
parent4d9a902be374aea023f2193f729c26612e56b542
counter: intel-qep: Use devm_mutex_init()

intel_qep_probe() calls mutex_init() but lacks the pairing
mutex_destroy() calls. Convert to devm_mutex_init() which handles
cleanup automatically.

Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Reviewed-by: Joshua Crofts <joshua.crofts1@gmail.com>
Reviewed-by: Stepan Ionichev <sozdayvek@gmail.com>
Link: https://lore.kernel.org/r/20260520111813.3934-1-ilpo.jarvinen@linux.intel.com
Signed-off-by: William Breathitt Gray <wbg@kernel.org>
drivers/counter/intel-qep.c