mirror of
https://github.com/torvalds/linux.git
synced 2025-12-07 20:06:24 +00:00
intel_th: make intel_th_bus_type constant
Now that the driver core can properly handle constant struct bus_type, move the intel_th_bus_type variable to be a constant structure as well, placing it into read-only memory which can not be modified at runtime. Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com> Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Link: https://patch.msgid.link/2025091412-machine-despair-248e@gregkh Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
@@ -166,7 +166,7 @@ static void intel_th_remove(struct device *dev)
|
||||
pm_runtime_enable(dev);
|
||||
}
|
||||
|
||||
static struct bus_type intel_th_bus = {
|
||||
static const struct bus_type intel_th_bus = {
|
||||
.name = "intel_th",
|
||||
.match = intel_th_match,
|
||||
.probe = intel_th_probe,
|
||||
|
||||
Reference in New Issue
Block a user