PCI: endpoint: Make pci_epf_bus_type const
authorRicardo B. Marliere <ricardo@marliere.net>
Sun, 4 Feb 2024 20:28:58 +0000 (17:28 -0300)
committerManivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Thu, 8 Feb 2024 05:19:30 +0000 (10:49 +0530)
commitb91da7308171ac4ad2623d371f37288dafbb3bdc
tree839a6baebcccfef4047e4562594dc00cbb348aad
parent6613476e225e090cc9aad49be7fa504e290dd33d
PCI: endpoint: Make pci_epf_bus_type const

Now that the driver core can properly handle constant struct bus_type,
move the pci_epf_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>
Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Link: https://lore.kernel.org/r/20240204-bus_cleanup-pci-v1-1-300267a1e99e@marliere.net
[mani: modified subject to reflect subsys prefix]
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
drivers/pci/endpoint/pci-epf-core.c