ata: pata_parport: make pata_parport_bus_type const
authorRicardo B. Marliere <ricardo@marliere.net>
Sun, 4 Feb 2024 15:23:29 +0000 (12:23 -0300)
committerNiklas Cassel <cassel@kernel.org>
Tue, 6 Feb 2024 09:41:57 +0000 (10:41 +0100)
commita9dde2823c3330503fb6906d18c7bcced7b280af
tree28f7c51f1a13a53d01a4a5cdeadde60ae72e9883
parent54be6c6c5ae8e0d93a6c4641cb7528eb0b6ba478
ata: pata_parport: make pata_parport_bus_type const

Now that the driver core can properly handle constant struct bus_type,
move the pata_parport_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: Damien Le Moal <dlemoal@kernel.org>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Niklas Cassel <cassel@kernel.org>
drivers/ata/pata_parport/pata_parport.c