[PATCH] arm: make sa1111_bus_type const

Greg Kroah-Hartman gregkh at linuxfoundation.org
Thu Sep 18 08:50:18 PDT 2025


On Thu, Sep 18, 2025 at 01:44:28PM +0000, Adrian Barnaś wrote:
> Because driver core can properly handle constant struct bus_type,
> move the sa1111_bus_type to be a constant structure as well,
> placing it into read-only memory which can not be modified at runtime.
> 
> Signed-off-by: Adrian Barnaś <abarnas at google.com>
> ---
>  arch/arm/common/sa1111.c               | 2 +-
>  arch/arm/include/asm/hardware/sa1111.h | 2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)

Reviewed-by: Greg Kroah-Hartman <gregkh at linuxfoundation.org>



More information about the linux-arm-kernel mailing list