aboutsummaryrefslogtreecommitdiff
path: root/drivers/staging/vme_user/vme.h
diff options
context:
space:
mode:
authorGravatar Ricardo B. Marliere <ricardo@marliere.net> 2024-02-08 16:17:52 -0300
committerGravatar Greg Kroah-Hartman <gregkh@linuxfoundation.org> 2024-02-17 17:30:33 +0100
commit133951fda02c5440cf7048d9886a226bbc7504a2 (patch)
treea402c25c5b873d43c65bdecdfb7347e3a7f658c5 /drivers/staging/vme_user/vme.h
parentstaging: vc04_services: vchiq_arm: make vchiq_bus_type const (diff)
downloadlinux-133951fda02c5440cf7048d9886a226bbc7504a2.tar.gz
linux-133951fda02c5440cf7048d9886a226bbc7504a2.tar.bz2
linux-133951fda02c5440cf7048d9886a226bbc7504a2.zip
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>
Diffstat (limited to 'drivers/staging/vme_user/vme.h')
-rw-r--r--drivers/staging/vme_user/vme.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/vme_user/vme.h b/drivers/staging/vme_user/vme.h
index 06504dccd5ff..26aa40f78a74 100644
--- a/drivers/staging/vme_user/vme.h
+++ b/drivers/staging/vme_user/vme.h
@@ -81,7 +81,7 @@ struct vme_resource {
struct list_head *entry;
};
-extern struct bus_type vme_bus_type;
+extern const struct bus_type vme_bus_type;
/* Number of VME interrupt vectors */
#define VME_NUM_STATUSID 256