Re: [PATCH] mtd: rawnand: lpc32xx_slc: Convert to use devm_gpiod_get_optional()
From: Vladimir Zapolskiy
Date: Thu Nov 13 2025 - 19:18:25 EST
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@xxxxxxxxx>
Signed-off-by: Haotian Zhang <vulab@xxxxxxxxxxx>
Reviewed-by: Vladimir Zapolskiy <vz@xxxxxxxxx>
--
Best wishes,
Vladimir