mips: sgi-ip22: make gio_bus_type const
authorRicardo B. Marliere <ricardo@marliere.net>
Sun, 4 Feb 2024 15:06:57 +0000 (12:06 -0300)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Tue, 20 Feb 2024 12:36:34 +0000 (13:36 +0100)
commitfa494c0190170644f26ece25826d32e821450081
treea8526a5b6fc658ec1e9c536d6da8041b88da259f
parent5033ad566016bb9c3ea45d62c0a2244a6eb8d610
mips: sgi-ip22: make gio_bus_type const

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

Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Suggested-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Ricardo B. Marliere <ricardo@marliere.net>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/sgi-ip22/ip22-gio.c