aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRicardo B. Marliere <ricardo@marliere.net>2024-02-19 09:10:00 -0300
committerTony Lindgren <tony@atomide.com>2024-02-28 09:30:25 +0200
commit097948afa1c2220609683106c884a3c710e62c80 (patch)
treefe8f0d1d3ae238e2fe71df61a9f30670045c45d8
parent6613476e225e090cc9aad49be7fa504e290dd33d (diff)
bus: ti-sysc: constify the struct device_type usageomap-for-v6.9/ti-sysc-signedomap-for-v6.9/ti-sysc
Since commit aed65af1cc2f ("drivers: make device_type const"), the driver core can properly handle constant struct device_type. Move the sysc_device_type 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> Signed-off-by: Ricardo B. Marliere <ricardo@marliere.net> Message-ID: <20240219-device_cleanup-ti-sysc-v1-1-13b53177d0a5@marliere.net> Signed-off-by: Tony Lindgren <tony@atomide.com>
-rw-r--r--drivers/bus/ti-sysc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/bus/ti-sysc.c b/drivers/bus/ti-sysc.c
index 245e5e827d0dc..41d33f39efe52 100644
--- a/drivers/bus/ti-sysc.c
+++ b/drivers/bus/ti-sysc.c
@@ -2400,7 +2400,7 @@ static int sysc_child_add_clocks(struct sysc *ddata,
return 0;
}
-static struct device_type sysc_device_type = {
+static const struct device_type sysc_device_type = {
};
static struct sysc *sysc_child_to_parent(struct device *dev)