mips: txx9: make txx9_sramc_subsys const
authorRicardo B. Marliere <ricardo@marliere.net>
Sun, 4 Feb 2024 15:06:58 +0000 (12:06 -0300)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Tue, 20 Feb 2024 12:36:34 +0000 (13:36 +0100)
commit1003a1adf493074bf7ba2d8075d87aa0ae73f69b
tree1de91f321804b595ac30f15904c1235f17cbd087
parentfa494c0190170644f26ece25826d32e821450081
mips: txx9: make txx9_sramc_subsys const

Now that the driver core can properly handle constant struct bus_type,
move the txx9_sramc_subsys 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/txx9/generic/setup.c