[PATCH v3 2/5] i2c: xiic: switch to managed version of mutex_init
Andy Shevchenko
andriy.shevchenko at intel.com
Fri Jan 23 00:30:06 PST 2026
On Fri, Jan 23, 2026 at 08:02:45AM +0000, Abdurrahman Hussain via B4 Relay wrote:
> Simplify the error path by switching to a managed version of mutex_init.
...
> - mutex_init(&i2c->lock);
> + ret = devm_mutex_init(&pdev->dev, &i2c->lock);
> + if (ret < 0)
> + return ret;
Should use 'dev' instead (see comment on the patches 1 and 5).
--
With Best Regards,
Andy Shevchenko
More information about the linux-arm-kernel
mailing list