Skip to content

Commit 1003a1a

Browse files
rbmarlieretsbogend
authored andcommitted
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 <[email protected]> Suggested-by: Greg Kroah-Hartman <[email protected]> Signed-off-by: Ricardo B. Marliere <[email protected]> Signed-off-by: Thomas Bogendoerfer <[email protected]>
1 parent fa494c0 commit 1003a1a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/mips/txx9/generic/setup.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -762,7 +762,7 @@ void __init txx9_aclc_init(unsigned long baseaddr, int irq,
762762
{
763763
}
764764

765-
static struct bus_type txx9_sramc_subsys = {
765+
static const struct bus_type txx9_sramc_subsys = {
766766
.name = "txx9_sram",
767767
.dev_name = "txx9_sram",
768768
};

0 commit comments

Comments
 (0)