diff options
author | Heiner Kallweit <[email protected]> | 2024-04-13 23:01:17 +0200 |
---|---|---|
committer | Bjorn Helgaas <[email protected]> | 2024-04-17 10:44:17 -0500 |
commit | e30556bf682d36a88cc5aef98d1123ca71adb245 (patch) | |
tree | acc5f8a24bfe4153dbad69f1780ccc8f9f47c535 | |
parent | 4cece764965020c22cff7665b18a012006359095 (diff) |
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]>
-rw-r--r-- | drivers/pci/probe.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/probe.c b/drivers/pci/probe.c index 1325fbae2f28..4ec903291f36 100644 --- a/drivers/pci/probe.c +++ b/drivers/pci/probe.c @@ -95,7 +95,7 @@ static void release_pcibus_dev(struct device *dev) kfree(pci_bus); } -static struct class pcibus_class = { +static const struct class pcibus_class = { .name = "pci_bus", .dev_release = &release_pcibus_dev, .dev_groups = pcibus_groups, |