Re: [PATCH] ata: pata_parport: switch to dynamic root device

From: Niklas Cassel

Date: Mon Apr 27 2026 - 05:42:54 EST


On Fri, 24 Apr 2026 12:38:30 +0200, Johan Hovold wrote:
> Driver core expects devices to be dynamically allocated and will, for
> example, complain loudly when no release function has been provided.
>
> Use root_device_register() to allocate and register the root device
> instead of open coding using a static device.
>
> Note that this also fixes a reference leak in the unlikely event that
> device_register() ever fails.
>
> [...]

Applied to libata/linux.git (for-7.1-fixes), thanks!

[1/1] ata: pata_parport: switch to dynamic root device
https://git.kernel.org/libata/linux/c/163f6494

Kind regards,
Niklas