Re: [PATCH 2/2] i2c: amd8111: switch to devm_ functions
From: Andi Shyti
Date: Thu Feb 05 2026 - 06:04:03 EST
Hi Filippo,
On Mon, Feb 02, 2026 at 02:13:04PM +0100, Filippo Muscherà wrote:
> Use devm_kzalloc() to manage the memory allocation of the smbus structure
> and devm_request_region() to manage the I/O port region.
Merged to i2c/i2c-host-2.
Just a few notes for the next time:
1. I prefer two different patches for devm_kzalloc() and
devm_request_region().
2. For series with more than one patch, I'd like to have a cover
letter to introduce the series.
Thanks,
Andi
> This simplifies the error handling paths in the probe function by removing
> manual cleanup and allows for the removal of the explicit cleanup in the
> remove function.
>
> Signed-off-by: Filippo Muscherà <filippo.muschera@xxxxxxxxx>