Re: [PATCH] staging: iio: impedance-analyzer: ad5933: use devm_mutex_init()
From: Andy Shevchenko
Date: Tue Oct 27 2026 - 12:48:31 EST
On Tue, Oct 27, 2026 at 04:08:29PM +0000, Nithishvelan M wrote:
> Replace mutex_init() with devm_mutex_init() in ad5933_probe() and
> check its return value. The driver already uses devm_* helpers for its
> other resources and has no remove() callback, so this ensures the
> mutex is destroyed automatically on teardown when mutex debugging is
> enabled.
>
> No functional change intended. Compile-tested only.
Reviewed-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxx>
--
With Best Regards,
Andy Shevchenko