]> git.ipfire.org Git - thirdparty/linux.git/commit
drivers: rapidio: make rio_bus_type const
authorAdrian Barnaś <abarnas@google.com>
Fri, 19 Sep 2025 07:32:01 +0000 (07:32 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Oct 2025 05:55:02 +0000 (07:55 +0200)
commit8ce6b508f24b4ef3a78c2c0d92e67b9e324c4f7a
treeaefca18380e20de1602140840acc8fdfc036423f
parent61e606305672342858a647af3629d9dfcc4e4265
drivers: rapidio: make rio_bus_type const

Because driver core can properly handle constant struct bus_type,
move the rio_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/20250919073201.751348-1-abarnas@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/rapidio/rio-driver.c
include/linux/rio.h