[PATCH] pinctrl: spacemit: destroy mutex at driver detach

Javier Martinez Canillas javierm at redhat.com
Wed Mar 5 05:31:45 PST 2025


Bartosz Golaszewski <brgl at bgdev.pl> writes:

> From: Bartosz Golaszewski <bartosz.golaszewski at linaro.org>
>
> The mutex initialized in probe() is never cleaned up. Use
> devm_mutex_init() to destroy it automatically.
>
> Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski at linaro.org>
> ---

Reviewed-by: Javier Martinez Canillas <javierm at redhat.com>

-- 
Best regards,

Javier Martinez Canillas
Core Platforms
Red Hat




More information about the linux-riscv mailing list