Re: [PATCH RESEND] staging: iio: frequency: ad9832: use devm_mutex_init()

From: Andy Shevchenko

Date: Sat Oct 31 2026 - 04:51:49 EST


On Sat, Oct 31, 2026 at 01:28:14PM +0530, Nithishvelan M wrote:
> Replace mutex_init() with devm_mutex_init() in ad9832_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.
>
> Signed-off-by: Nithishvelan M <mnithishvelan@xxxxxxxxx>
> ---
> Resending because the first mail carried the patch as an attachment
> instead of inline. No changes to the patch itself.

Same comment as per that variant.

--
With Best Regards,
Andy Shevchenko