aboutsummaryrefslogtreecommitdiff
path: root/drivers/pci
diff options
context:
space:
mode:
authorGravatar Heiner Kallweit <hkallweit1@gmail.com> 2024-04-13 23:01:17 +0200
committerGravatar Bjorn Helgaas <bhelgaas@google.com> 2024-04-17 10:44:17 -0500
commite30556bf682d36a88cc5aef98d1123ca71adb245 (patch)
treeacc5f8a24bfe4153dbad69f1780ccc8f9f47c535 /drivers/pci
parentLinux 6.9-rc1 (diff)
downloadlinux-e30556bf682d36a88cc5aef98d1123ca71adb245.tar.gz
linux-e30556bf682d36a88cc5aef98d1123ca71adb245.tar.bz2
linux-e30556bf682d36a88cc5aef98d1123ca71adb245.zip
PCI: Constify pcibus_class
Constify pcibus_class. All users take a const struct class * argument. Link: https://lore.kernel.org/r/5e01f46f-266f-4fb3-be8a-8cb9e566cd75@gmail.com Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'drivers/pci')
-rw-r--r--drivers/pci/probe.c2
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,