mirror of
https://github.com/torvalds/linux.git
synced 2026-11-29 10:07:52 +00:00
Now that the driver core can properly handle constant struct bus_type, move the locomo_bus_type variable to be a constant structure as well, placing it into read-only memory which can not be modified at runtime. It's also never used outside of arch/arm/common/locomo.c so make it static and don't export it as no one is using it. Cc: Russell King <[email protected]> Cc: Arnd Bergmann <[email protected]> Cc: Uwe Kleine-König <[email protected]> Cc: Randy Dunlap <[email protected]> Cc: <[email protected]> Acked-by: Uwe Kleine-König <[email protected]> Reviewed-by: Arnd Bergmann <[email protected]> Link: https://lore.kernel.org/r/2023121905-idiom-opossum-1ba3@gregkh Signed-off-by: Greg Kroah-Hartman <[email protected]>