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:
commit
45a516f616
@ -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,
|
||||
};
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user