]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
parisc: drivers: switch to dynamic root device
authorJohan Hovold <johan@kernel.org>
Fri, 24 Apr 2026 10:32:11 +0000 (12:32 +0200)
committerHelge Deller <deller@gmx.de>
Tue, 28 Apr 2026 15:18:52 +0000 (17:18 +0200)
commitb8425ceefee5df2b8490fa70a07e4e402c752492
tree5f97824e0fd57f60c80e12cbc52a9d441dccd604
parent8135b89a376ab2c20db3921c9c38cf83994b1f1c
parisc: drivers: switch to dynamic root device

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@kernel.org>
Signed-off-by: Helge Deller <deller@gmx.de>
arch/parisc/kernel/drivers.c