Re: [PATCH 2/4] powerpc: ps3: make ps3_system_bus_type const

From: Geoff Levand
Date: Sun Feb 04 2024 - 19:04:32 EST


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@xxxxxxxxxxxxx>