# Re: \[PATCH 2/4\] powerpc: ps3: make ps3\_system\_bus\_type const

- From: Geoff Levand \<geoff@infradead.org\>
- Date: 2024-02-05 00:04:16 
- List: linuxppc-dev
- Page: https://ratatoskr.run/linuxppc-dev/2024/02/2484125
- Thread: https://ratatoskr.run/linuxppc-dev/2024/02/2483867/t.md

```text
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@infradead.org>

 

```
