]> git.ipfire.org Git - thirdparty/linux.git/commit
powerpc: pseries: make suspend_subsys const
authorAdrian Barnaś <abarnas@google.com>
Thu, 18 Sep 2025 14:08:15 +0000 (14:08 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Oct 2025 05:59:57 +0000 (07:59 +0200)
commit6848990d4d78ccc790294df1c8741a8c4005db9d
treeef7ea18ae51b3bfc58b9f8cb24ea49baf96022b9
parent4c987d67b31f93ac88f4be6dfec6a169997fc2c8
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>
arch/powerpc/platforms/pseries/suspend.c