staging: vme: make vme_bus_type const
authorRicardo B. Marliere <ricardo@marliere.net>
Thu, 8 Feb 2024 19:17:52 +0000 (16:17 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 17 Feb 2024 16:30:33 +0000 (17:30 +0100)
commit133951fda02c5440cf7048d9886a226bbc7504a2
treea402c25c5b873d43c65bdecdfb7347e3a7f658c5
parent869eb452aed66ac74c0ee7ecd6f9d545b975c676
staging: vme: make vme_bus_type const

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

Suggested-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Ricardo B. Marliere <ricardo@marliere.net>
Link: https://lore.kernel.org/r/20240208-bus_cleanup-staging2-v1-2-cfe906133a2c@marliere.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vme_user/vme.c
drivers/staging/vme_user/vme.h