Re: [PATCH 2/3] Input: soc_button_array - use __free() cleanup facilities to free memory

From: Andy Shevchenko

Date: Wed Oct 21 2026 - 13:13:06 EST


On Tue, Oct 20, 2026 at 06:50:00PM -0700, Dmitry Torokhov wrote:
> Switch to using __free(kfree) cleanup facilities instead of doing manual
> cleanup or abusing devm for allocations that are only needed during
> probing.

...

> + const union acpi_object *desc __free(kfree) = buf.pointer;

Rafael added 'acpi_object_free' for __free() (pun wasn't intended :-).

--
With Best Regards,
Andy Shevchenko