Re: [PATCH] drivers: rapidio: make rio_bus_type const

From: Greg Kroah-Hartman

Date: Fri Sep 19 2025 - 11:39:11 EST


On Fri, Sep 19, 2025 at 07:32:01AM +0000, Adrian Barnaś wrote:
> Because driver core can properly handle constant struct bus_type,
> move the rio_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@xxxxxxxxxx>
> ---
> drivers/rapidio/rio-driver.c | 2 +-
> include/linux/rio.h | 2 +-
> 2 files changed, 2 insertions(+), 2 deletions(-)

Reviewed-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>