1

Merge branch 'pci/misc'

- Make pcie_port_bus_type const (Ricardo B. Marliere)

* pci/misc:
  PCI: Make pcie_port_bus_type const
This commit is contained in:
Bjorn Helgaas 2024-03-12 12:14:24 -05:00
commit 45a516f616
2 changed files with 2 additions and 2 deletions

View 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,
};

View 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;