]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
firmware: imx: scu: Use devm_mutex_init
authorPeng Fan <peng.fan@nxp.com>
Fri, 17 Oct 2025 01:56:31 +0000 (09:56 +0800)
committerShawn Guo <shawnguo@kernel.org>
Mon, 27 Oct 2025 06:43:48 +0000 (14:43 +0800)
commit97a07dd2b559d149598cd49574ce50614752211a
treec072782b86979c0507e54d35c36cb4efb5df2887
parentff79af939d84791b1af49492431c1520f31e671b
firmware: imx: scu: Use devm_mutex_init

In normal case, there is no need to invoke mutex_destroy in error path,
but it is useful when CONFIG_DEBUG_MUTEXES, so use devm_mutex_init().

Reviewed-by: Frank Li <Frank.Li@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
drivers/firmware/imx/imx-scu.c