]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
nubus: Switch to dynamic root device
authorJohan Hovold <johan@kernel.org>
Fri, 24 Apr 2026 10:40:11 +0000 (12:40 +0200)
committerGeert Uytterhoeven <geert@linux-m68k.org>
Mon, 18 May 2026 09:16:19 +0000 (11:16 +0200)
commitbcb685e15ee66daec68025a40be3b54156ad0410
tree59c84a57349354f6ffcfcaf45465d065b2d88ef7
parent99a680bed60428175ff9c5c95d579826ca2ff3f8
nubus: 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.

Signed-off-by: Johan Hovold <johan@kernel.org>
Acked-by: Finn Thain <fthain@linux-m68k.org>
Reviewed-by: Geert Uytterhoeven <geert@linux-m68k.org>
Link: https://patch.msgid.link/20260424104011.2616970-1-johan@kernel.org
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
drivers/nubus/nubus.c