Re: [PATCH] [ARM] locomo: make locomo_bus_type constant and static

From: Arnd Bergmann
Date: Tue Dec 19 2023 - 14:27:48 EST


On Tue, Dec 19, 2023, at 18:33, Greg Kroah-Hartman wrote:
> 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.

Reviewed-by: Arnd Bergmann <arnd@xxxxxxxx>