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:
parent
6db608171a
commit
b93606c51b
|
|
@ -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",
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue