nubus: Make nubus_bus_type static and constant
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 19 Dec 2023 15:47:41 +0000 (16:47 +0100)
committerGeert Uytterhoeven <geert@linux-m68k.org>
Wed, 3 Jan 2024 12:33:59 +0000 (13:33 +0100)
commita15f2d48c6f84ae0dd2000288592c79d5d1acd0e
tree1919f6621f4016c3e2bd4c002d77378270f016f3
parentb85ea95d086471afb4ad062012a4d73cd328fa86
nubus: Make nubus_bus_type static and constant

Now that the driver core can properly handle constant struct bus_type,
move the nubus_bus_type variable to be a constant structure as well,
placing it into read-only memory which can not be modified at runtime.

It's also never used outside of drivers/nubus/bus.c so make it static
and don't export it as no one is using it.

Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Acked-by: Finn Thain <fthain@linux-m68k.org>
Reviewed-by: Geert Uytterhoeven <geert@linux-m68k.org>
Link: https://lore.kernel.org/r/2023121940-enlarged-editor-c9a8@gregkh
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
drivers/nubus/bus.c
include/linux/nubus.h