Skip to content

Commit e30556b

Browse files
hkallweitbjorn-helgaas
authored andcommitted
PCI: Constify pcibus_class
Constify pcibus_class. All users take a const struct class * argument. Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Heiner Kallweit <[email protected]> Signed-off-by: Bjorn Helgaas <[email protected]>
1 parent 4cece76 commit e30556b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/pci/probe.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ static void release_pcibus_dev(struct device *dev)
9595
kfree(pci_bus);
9696
}
9797

98-
static struct class pcibus_class = {
98+
static const struct class pcibus_class = {
9999
.name = "pci_bus",
100100
.dev_release = &release_pcibus_dev,
101101
.dev_groups = pcibus_groups,

0 commit comments

Comments
 (0)