]> git.ipfire.org Git - thirdparty/linux.git/commit
arch: powerpc: ps3: Make ps3_system_bus_type const
authorAdrian Barnaś <abarnas@google.com>
Thu, 18 Sep 2025 11:48:40 +0000 (11:48 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Oct 2025 05:55:05 +0000 (07:55 +0200)
commit8ae7090dc7862c1c351bce14cdbf9125d3a4416e
treeb4c3041e9d91797cf6887863734810455365dad4
parent8ce6b508f24b4ef3a78c2c0d92e67b9e324c4f7a
arch: powerpc: ps3: Make ps3_system_bus_type const

Because driver core can properly handle constant struct bus_type,
move the ps3_system_bus_type 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: Geert Uytterhoeven <geert@linux-m68k.org>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Acked-by: Geoff Levand <geoff@infradead.org>
Link: https://patch.msgid.link/20250918114840.53581-1-abarnas@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/powerpc/platforms/ps3/system-bus.c