[PATCH v2] pinctrl: aspeed: Use managed pinctrl registration

Linus Walleij linusw at kernel.org
Tue Nov 17 06:00:43 PST 2026


On Mon, Nov 9, 2026 at 4:57 AM Prasanth Kumar Padarthi
<prasanth.padarthi10 at gmail.com> 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.
>
> Fixes: 4d3d0e4272d8 ("pinctrl: Add core support for Aspeed SoCs")
> Signed-off-by: Prasanth Kumar Padarthi <prasanth.padarthi10 at gmail.com>
> Reviewed-by: Andrew Jeffery <andrew at codeconstruct.com.au>
> ---
> Changes in v2:
> - Add Fixes trailer.
> - Add Reviewed-by trailer from Andrew Jeffery.

Patch applied as nonurgent fix.

Yours,
Linus Walleij



More information about the linux-arm-kernel mailing list