diff options
author | Ricardo B. Marliere <ricardo@marliere.net> | 2024-02-04 12:06:58 -0300 |
---|---|---|
committer | Thomas Bogendoerfer <tsbogend@alpha.franken.de> | 2024-02-20 13:36:34 +0100 |
commit | 1003a1adf493074bf7ba2d8075d87aa0ae73f69b (patch) | |
tree | 1de91f321804b595ac30f15904c1235f17cbd087 /arch/mips/txx9/generic | |
parent | fa494c0190170644f26ece25826d32e821450081 (diff) | |
download | linux-1003a1adf493074bf7ba2d8075d87aa0ae73f69b.tar.gz linux-1003a1adf493074bf7ba2d8075d87aa0ae73f69b.tar.bz2 linux-1003a1adf493074bf7ba2d8075d87aa0ae73f69b.zip |
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>
Diffstat (limited to 'arch/mips/txx9/generic')
-rw-r--r-- | arch/mips/txx9/generic/setup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/txx9/generic/setup.c b/arch/mips/txx9/generic/setup.c index b098a3c76ae9..1e67fecd466e 100644 --- a/arch/mips/txx9/generic/setup.c +++ b/arch/mips/txx9/generic/setup.c @@ -762,7 +762,7 @@ void __init txx9_aclc_init(unsigned long baseaddr, int irq, { } -static struct bus_type txx9_sramc_subsys = { +static const struct bus_type txx9_sramc_subsys = { .name = "txx9_sram", .dev_name = "txx9_sram", }; |