aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/soc
diff options
context:
space:
mode:
authorRicardo B. Marliere <ricardo@marliere.net>2024-02-13 11:44:01 -0300
committerBjorn Andersson <andersson@kernel.org>2024-02-13 23:38:03 -0600
commitd2e8899de71cd0a3c22a0eadfb9d54604d34eb96 (patch)
tree2df101b910df782687ec618648412a6844253819 /drivers/soc
parentdt-bindings: soc: qcom: qcom,pmic-glink: document X1E80100 compatible (diff)
downloadwireguard-linux-d2e8899de71cd0a3c22a0eadfb9d54604d34eb96.tar.xz
wireguard-linux-d2e8899de71cd0a3c22a0eadfb9d54604d34eb96.zip
soc: qcom: apr: make aprbus const
Since commit d492cc2573a0 ("driver core: device.h: make struct bus_type a const *"), the driver core can properly handle constant struct bus_type, move the aprbus variable to be a constant structure as well, placing it into read-only memory which can not be modified at runtime. Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Suggested-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: "Ricardo B. Marliere" <ricardo@marliere.net> Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Link: https://lore.kernel.org/r/20240213-bus_cleanup-apr-v1-1-50c824eec06d@marliere.net Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Diffstat (limited to 'drivers/soc')
-rw-r--r--drivers/soc/qcom/apr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/soc/qcom/apr.c b/drivers/soc/qcom/apr.c
index 1f8b315576a4..50749e870efa 100644
--- a/drivers/soc/qcom/apr.c
+++ b/drivers/soc/qcom/apr.c
@@ -399,7 +399,7 @@ static int apr_uevent(const struct device *dev, struct kobj_uevent_env *env)
return add_uevent_var(env, "MODALIAS=apr:%s", adev->name);
}
-struct bus_type aprbus = {
+const struct bus_type aprbus = {
.name = "aprbus",
.match = apr_device_match,
.probe = apr_device_probe,