Merge branch 'pci/misc'
authorBjorn Helgaas <bhelgaas@google.com>
Tue, 12 Mar 2024 17:14:24 +0000 (12:14 -0500)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 12 Mar 2024 17:14:24 +0000 (12:14 -0500)
- Make pcie_port_bus_type const (Ricardo B. Marliere)

* pci/misc:
  PCI: Make pcie_port_bus_type const

drivers/pci/pci-driver.c
drivers/pci/pcie/portdrv.h

index 072b8349319499d5e6d8e0fca9bf04b91e09119e..af2996d0d17ffc0fa2ae730eb09d58243cf79a5b 100644 (file)
@@ -1709,7 +1709,7 @@ static int pcie_port_bus_match(struct device *dev, struct device_driver *drv)
        return 1;
 }
 
-struct bus_type pcie_port_bus_type = {
+const struct bus_type pcie_port_bus_type = {
        .name           = "pci_express",
        .match          = pcie_port_bus_match,
 };
index 1f3803bde7ee16067d4aa801057076268dfe4b51..12c89ea0313b9c4c5aa73744ea6aff9dee844d84 100644 (file)
@@ -96,7 +96,7 @@ struct pcie_port_service_driver {
 int pcie_port_service_register(struct pcie_port_service_driver *new);
 void pcie_port_service_unregister(struct pcie_port_service_driver *new);
 
-extern struct bus_type pcie_port_bus_type;
+extern const struct bus_type pcie_port_bus_type;
 
 struct pci_dev;