summaryrefslogtreecommitdiffstats
path: root/arch/mips
diff options
context:
space:
mode:
authorRicardo B. Marliere <ricardo@marliere.net>2024-02-13 11:49:24 -0300
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>2024-02-20 13:36:34 +0100
commiteac95d5ae4f872201f6da274af1cd372970af521 (patch)
tree0ff67fecdb1c93084420d489c7dd7a95079aaf27 /arch/mips
parentaaf2230036b709f979caccfbaa7a8bf671c22124 (diff)
downloadlinux-stable-eac95d5ae4f872201f6da274af1cd372970af521.tar.gz
linux-stable-eac95d5ae4f872201f6da274af1cd372970af521.tar.bz2
linux-stable-eac95d5ae4f872201f6da274af1cd372970af521.zip
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>
Diffstat (limited to 'arch/mips')
-rw-r--r--arch/mips/include/asm/cdmm.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/include/asm/cdmm.h b/arch/mips/include/asm/cdmm.h
index c06dbf8ba937..81fa99084178 100644
--- a/arch/mips/include/asm/cdmm.h
+++ b/arch/mips/include/asm/cdmm.h
@@ -63,7 +63,7 @@ struct mips_cdmm_driver {
*/
phys_addr_t mips_cdmm_phys_base(void);
-extern struct bus_type mips_cdmm_bustype;
+extern const struct bus_type mips_cdmm_bustype;
void __iomem *mips_cdmm_early_probe(unsigned int dev_type);
#define to_mips_cdmm_device(d) container_of(d, struct mips_cdmm_device, dev)