Skip to content

Commit 45a516f

Browse files
committed
Merge branch 'pci/misc'
- Make pcie_port_bus_type const (Ricardo B. Marliere) * pci/misc: PCI: Make pcie_port_bus_type const
2 parents f931e3c + 7adf6ac commit 45a516f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

drivers/pci/pci-driver.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1709,7 +1709,7 @@ static int pcie_port_bus_match(struct device *dev, struct device_driver *drv)
17091709
return 1;
17101710
}
17111711

1712-
struct bus_type pcie_port_bus_type = {
1712+
const struct bus_type pcie_port_bus_type = {
17131713
.name = "pci_express",
17141714
.match = pcie_port_bus_match,
17151715
};

drivers/pci/pcie/portdrv.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ struct pcie_port_service_driver {
9696
int pcie_port_service_register(struct pcie_port_service_driver *new);
9797
void pcie_port_service_unregister(struct pcie_port_service_driver *new);
9898

99-
extern struct bus_type pcie_port_bus_type;
99+
extern const struct bus_type pcie_port_bus_type;
100100

101101
struct pci_dev;
102102

0 commit comments

Comments
 (0)