]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
fsi: make fsi_bus_type constant
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 1 Jul 2025 12:07:01 +0000 (14:07 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 16 Jul 2025 12:28:21 +0000 (14:28 +0200)
commit5eac636917486f3f072328d7f5bcdc22bbc9a1d1
treeb5fb70dd878b2f2b3bb0344a1335f3263fb93716
parentb8e3603a57e118dc53028b9d27cfbe487df4278c
fsi: make fsi_bus_type constant

Now that the driver core can properly handle constant struct bus_type,
move the fsi_bus_type variable to be a constant structure as well,
placing it into read-only memory which can not be modified at runtime.

Cc: Ninad Palsule <ninad@linux.ibm.com>
Cc: linux-fsi@lists.ozlabs.org
Reviewed-by: Eddie James <eajames@linux.ibm.com>
Link: https://lore.kernel.org/r/2025070100-overblown-busily-a04b@gregkh
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/fsi/fsi-core.c
include/linux/fsi.h