mirror of
https://github.com/torvalds/linux.git
synced 2025-12-07 20:06:24 +00:00
powerpc: pseries: make suspend_subsys const
Because driver core can properly handle constant struct bus_type, move the suspend_subsys to be a constant structure as well, placing it into read-only memory which can not be modified at runtime. Signed-off-by: Adrian Barnaś <abarnas@google.com> Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Link: https://patch.msgid.link/20250918140816.335916-2-abarnas@google.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
4c987d67b3
commit
6848990d4d
@@ -126,7 +126,7 @@ static ssize_t show_hibernate(struct device *dev,
|
||||
|
||||
static DEVICE_ATTR(hibernate, 0644, show_hibernate, store_hibernate);
|
||||
|
||||
static struct bus_type suspend_subsys = {
|
||||
static const struct bus_type suspend_subsys = {
|
||||
.name = "power",
|
||||
.dev_name = "power",
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user