]> www.infradead.org Git - users/jedix/linux-maple.git/commit
firmware: turris-mox-rwtm: Use devm_mutex_init() instead of mutex_init()
authorMarek BehĂșn <kabel@kernel.org>
Sat, 31 Aug 2024 09:20:46 +0000 (11:20 +0200)
committerArnd Bergmann <arnd@arndb.de>
Mon, 2 Sep 2024 09:42:10 +0000 (09:42 +0000)
commitdb955e0847484c64c6e749659527b5f45b2b5749
tree32f3eb355ecdb993a78514c5ba11c899b2a59e58
parented09d6d4f5938626823af3d2a04ff3a395bd348a
firmware: turris-mox-rwtm: Use devm_mutex_init() instead of mutex_init()

Use devm_mutex_init() instead of mutex_init(), to properly call
mutex_destroy() on probe failure / driver unbind.

Signed-off-by: Marek BehĂșn <kabel@kernel.org>
Reviewed-by: Andy Shevchenko <andy@kernel.org>
Link: https://lore.kernel.org/r/20240831092050.23093-13-kabel@kernel.org
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
drivers/firmware/turris-mox-rwtm.c