Re: [PATCH] parisc: drivers: switch to dynamic root device

Helge Deller <[email protected]>
Newsgroups org.kernel.vger.linux-parisc,org.kernel.vger.linux-kernel
Message-ID <[email protected]>
On 4/24/26 12:32, 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.
> 
> While at it, drop the redundant additional reference taken at init.
> 
> Signed-off-by: Johan Hovold <[email protected]>
> ---
>   arch/parisc/kernel/drivers.c | 21 ++++++++++-----------
>   1 file changed, 10 insertions(+), 11 deletions(-)

applied.
Thanks!
Helge
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.