aboutsummaryrefslogtreecommitdiff
path: root/drivers/gpio/gpio-mpc5200.c
diff options
context:
space:
mode:
authorBartosz Golaszewski <bartosz.golaszewski@linaro.org>2024-10-08 18:24:16 +0200
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>2024-10-14 10:30:36 +0200
commit476f18c0895df7b281eb84b3e687e6101c844338 (patch)
tree3033aaed6aba1eb30613c254495deca231ff338b /drivers/gpio/gpio-mpc5200.c
parenta937ee6d7eba055226fba300e17ade6f65de6d93 (diff)
downloadlinux-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