powerpc: cell: make spu_subsys const

Because driver core can properly handle constant struct bus_type,
move the spu_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/20250918141633.339803-1-abarnas@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Adrian Barnaś 2025-09-18 14:16:33 +00:00 committed by Greg Kroah-Hartman
parent 6db608171a
commit b93606c51b
1 changed files with 1 additions and 1 deletions

View File

@ -464,7 +464,7 @@ void spu_init_channels(struct spu *spu)
}
EXPORT_SYMBOL_GPL(spu_init_channels);
static struct bus_type spu_subsys = {
static const struct bus_type spu_subsys = {
.name = "spu",
.dev_name = "spu",
};