bus: ti-sysc: constify the struct device_type usage
authorRicardo B. Marliere <ricardo@marliere.net>
Mon, 19 Feb 2024 12:10:00 +0000 (09:10 -0300)
committerTony Lindgren <tony@atomide.com>
Wed, 28 Feb 2024 07:30:25 +0000 (09:30 +0200)
commit097948afa1c2220609683106c884a3c710e62c80
treefe8f0d1d3ae238e2fe71df61a9f30670045c45d8
parent6613476e225e090cc9aad49be7fa504e290dd33d
bus: ti-sysc: constify the struct device_type usage

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>
drivers/bus/ti-sysc.c