Re: [PATCH] isa: switch to dynamic root device
From: William Breathitt Gray
Date: Sun May 03 2026 - 01:08:18 EST
On Fri, Apr 24, 2026 at 12:24:00PM +0200, Johan Hovold wrote:
> Driver core expects devices to be dynamically allocated and will, for
> example, complain loudly if a device that lacks a release function is
> ever freed.
>
> 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 case device_register()
> fails which may be flagged by static checkers.
>
> Signed-off-by: Johan Hovold <johan@xxxxxxxxxx>
Hi Johan,
Would you resend with a Fixes tag and CC stable@xxxxxxxxxxxxxxx so we
can get this patch picked up in the stable trees as well?
Thanks,
William Breathitt Gray