diff options
author | Bartosz Golaszewski <bartosz.golaszewski@linaro.org> | 2024-10-08 18:24:16 +0200 |
---|---|---|
committer | Bartosz Golaszewski <bartosz.golaszewski@linaro.org> | 2024-10-14 10:30:36 +0200 |
commit | 476f18c0895df7b281eb84b3e687e6101c844338 (patch) | |
tree | 3033aaed6aba1eb30613c254495deca231ff338b /drivers/gpio/gpio-mpc5200.c | |
parent | a937ee6d7eba055226fba300e17ade6f65de6d93 (diff) | |
download | linux-476f18c0895df7b281eb84b3e687e6101c844338.tar.gz linux-476f18c0895df7b281eb84b3e687e6101c844338.tar.bz2 linux-476f18c0895df7b281eb84b3e687e6101c844338.zip |
gpio: ljca: use devm_mutex_init() to simplify the error path and remove()
Destroying the mutexes is done at the end of remove() so switching to
devres does not constitute a functional change. Use devm_mutex_init()
and remove repetitions of mutex_destroy().
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20241008162416.85111-1-brgl@bgdev.pl
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Diffstat (limited to 'drivers/gpio/gpio-mpc5200.c')
0 files changed, 0 insertions, 0 deletions