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

From: Helge Deller

Date: Tue Apr 28 2026 - 11:22:59 EST


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 <johan@xxxxxxxxxx>
---
arch/parisc/kernel/drivers.c | 21 ++++++++++-----------
1 file changed, 10 insertions(+), 11 deletions(-)

applied.
Thanks!
Helge