[PATCH 2/4] powerpc: ps3: make ps3_system_bus_type const
Geoff Levand
geoff at infradead.org
Mon Feb 5 11:04:00 AEDT 2024
On 2/4/24 23:21, Ricardo B. Marliere wrote:
> Now that the driver core can properly handle constant struct bus_type,
> move the ps3_system_bus_type variable to be a constant structure as
> well, placing it into read-only memory which can not be modified at
> runtime.
> -static struct bus_type ps3_system_bus_type = {
> +static const struct bus_type ps3_system_bus_type = {
> .name = "ps3_system_bus",
> .match = ps3_system_bus_match,
> .uevent = ps3_system_bus_uevent,
Seems fine.
Acked-by: Geoff Levand <geoff at infradead.org>
More information about the Linuxppc-dev
mailing list