[PATCH] pinctrl: aspeed: Use managed pinctrl registration

Andrew Jeffery andrew at codeconstruct.com.au
Sun Nov 8 18:50:20 PST 2026


On Sat, 2026-11-07 at 06:52 +0530, Prasanth Kumar Padarthi wrote:
> The shared Aspeed probe helper registers its controller with
> pinctrl_register(), but does not unregister it on device unbind.
> The registration can therefore outlive device-managed data.
> 
> Use devm_pinctrl_register() to ensure the controller is unregistered
> during device teardown.
> 
> Signed-off-by: Prasanth Kumar Padarthi <prasanth.padarthi10 at gmail.com>

Reviewed-by: Andrew Jeffery <andrew at codeconstruct.com.au>



More information about the linux-arm-kernel mailing list