[PATCH] mtd: rawnand: lpc32xx_slc: Convert to use devm_gpiod_get_optional()
Vladimir Zapolskiy
vz at mleia.com
Thu Nov 13 16:18:22 PST 2025
On 11/4/25 12:08, Haotian Zhang wrote:
> The initial fix for a GPIO descriptor leak added manual gpiod_put()
> calls in the error path and remove function.
>
> This follow-up patch improves upon the fix by switching to the
> resource-managed devm_gpiod_get_optional() API.
>
> Suggested-by: Vladimir Zapolskiy <vz at mleia.com>
> Signed-off-by: Haotian Zhang <vulab at iscas.ac.cn>
Reviewed-by: Vladimir Zapolskiy <vz at mleia.com>
--
Best wishes,
Vladimir
More information about the linux-mtd
mailing list