mips: bus: make mips_cdmm_bustype const
authorRicardo B. Marliere <ricardo@marliere.net>
Tue, 13 Feb 2024 14:49:24 +0000 (11:49 -0300)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Tue, 20 Feb 2024 12:36:34 +0000 (13:36 +0100)
commiteac95d5ae4f872201f6da274af1cd372970af521
tree0ff67fecdb1c93084420d489c7dd7a95079aaf27
parentaaf2230036b709f979caccfbaa7a8bf671c22124
mips: bus: make mips_cdmm_bustype const

Now that the driver core can properly handle constant struct bus_type,
move the mips_cdmm_bustype 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>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Tested-by: Serge Semin <fancer.lancer@gmail.com>
Acked-by: Serge Semin <fancer.lancer@gmail.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/include/asm/cdmm.h
drivers/bus/mips_cdmm.c