summaryrefslogtreecommitdiff
path: root/drivers/amba
diff options
context:
space:
mode:
authorKunwu Chan <chentao@kylinos.cn>2024-09-02 07:43:23 +0100
committerRussell King (Oracle) <rmk+kernel@armlinux.org.uk>2024-09-04 15:01:17 +0100
commita4d398a573d0f0c98c39d4af1866a3edaec4959c (patch)
treeaf00a750333e20eb6bd4afb8bf669b8d8c6def25 /drivers/amba
parentde9c2c66ad8e787abec7c9d7eff4f8c3cdd28aed (diff)
ARM: 9416/1: amba: make amba_bustype constant
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 amba_bustype 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: Kunwu Chan <chentao@kylinos.cn> Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Diffstat (limited to 'drivers/amba')
-rw-r--r--drivers/amba/bus.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/amba/bus.c b/drivers/amba/bus.c
index 34bc880ca20b..0230c43377c1 100644
--- a/drivers/amba/bus.c
+++ b/drivers/amba/bus.c
@@ -435,7 +435,7 @@ static const struct dev_pm_ops amba_pm = {
* DMA configuration for platform and AMBA bus is same. So here we reuse
* platform's DMA config routine.
*/
-struct bus_type amba_bustype = {
+const struct bus_type amba_bustype = {
.name = "amba",
.dev_groups = amba_dev_groups,
.match = amba_match,