]> git.ipfire.org Git - thirdparty/linux.git/commit
arm: make sa1111_bus_type const
authorAdrian Barnaś <abarnas@google.com>
Thu, 18 Sep 2025 13:44:28 +0000 (13:44 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Oct 2025 05:54:54 +0000 (07:54 +0200)
commit6db608171a9047f076bea9273061fcc9ad3d4d85
tree1eaa20933d9aebfa8c78c34491da186063ac8815
parent48d45ae4ddaadaf67408cc588596a96b282ce2b4
arm: make sa1111_bus_type const

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@google.com>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Link: https://patch.msgid.link/20250918134429.270814-1-abarnas@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm/common/sa1111.c
arch/arm/include/asm/hardware/sa1111.h