diff options
author | Ricardo B. Marliere <ricardo@marliere.net> | 2024-02-13 11:44:01 -0300 |
---|---|---|
committer | Bjorn Andersson <andersson@kernel.org> | 2024-02-13 23:38:03 -0600 |
commit | d2e8899de71cd0a3c22a0eadfb9d54604d34eb96 (patch) | |
tree | 2df101b910df782687ec618648412a6844253819 /drivers/soc | |
parent | 0ebeba917f030811f9ea30cd6c435e5b9ebbed43 (diff) | |
download | linux-stable-d2e8899de71cd0a3c22a0eadfb9d54604d34eb96.tar.gz linux-stable-d2e8899de71cd0a3c22a0eadfb9d54604d34eb96.tar.bz2 linux-stable-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.c | 2 |
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, |