ath79: gpio-latch-mikrotik: use devm_mutex_init
authorRosen Penev <rosenp@gmail.com>
Fri, 4 Oct 2024 20:24:29 +0000 (13:24 -0700)
committerRobert Marko <robimarko@gmail.com>
Mon, 7 Oct 2024 13:15:27 +0000 (15:15 +0200)
commitd51353db26f1e625fa95b36bc554902083dc72d3
tree5fda8a87bf3988e86c10477c765ae75395104b10
parent73d3789e6792e685aeed039178d263510330f198
ath79: gpio-latch-mikrotik: use devm_mutex_init

Avoids needing to call mutex_destroy in error paths, which is missing
anyway.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/16620
Signed-off-by: Robert Marko <robimarko@gmail.com>
target/linux/ath79/files/drivers/gpio/gpio-latch-mikrotik.c