parisc: make parisc_bus_type const
authorRicardo B. Marliere <ricardo@marliere.net>
Tue, 13 Feb 2024 14:38:02 +0000 (11:38 -0300)
committerHelge Deller <deller@gmx.de>
Tue, 27 Feb 2024 21:51:44 +0000 (22:51 +0100)
commit0b9ec151b9b45fee749d32d744d50e1b721d79b2
tree834d6dc03df7ae059d4c757854833b40d2833836
parentcf159848860d38c2f2509ec19d595f5490ed03e5
parisc: make parisc_bus_type const

Since commit d492cc2573a0 ("driver core: device.h: make struct
bus_type a const *"), the driver core can properly handle constant
struct bus_type, move the parisc_bus_type 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>
Signed-off-by: Helge Deller <deller@gmx.de>
arch/parisc/include/asm/parisc-device.h
arch/parisc/kernel/drivers.c