sh: intc: Make intc_subsys const
authorRicardo B. Marliere <ricardo@marliere.net>
Thu, 8 Feb 2024 19:56:52 +0000 (16:56 -0300)
committerJohn Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
Thu, 15 Feb 2024 17:12:01 +0000 (18:12 +0100)
commitad4acb2ec205464e5c352c0466603174aecb3a38
treeb4ee4f4ad2df42c24a9c1e6d486d4fc6b4fb2485
parentd32b8d7e3d207bf4d5ae06b1e0fca27fd7639371
sh: intc: Make intc_subsys const

Now that the driver core can properly handle constant struct bus_type,
move the make intc_subsys variable to be a constant structure as well,
placing it into read-only memory which can not be modified at runtime.

Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Suggested-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Ricardo B. Marliere <ricardo@marliere.net>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Reviewed-by: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
Link: https://lore.kernel.org/r/20240208-bus_cleanup-sh2-v1-1-729277400893@marliere.net
Signed-off-by: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
drivers/sh/intc/core.c
drivers/sh/intc/internals.h