diff options
author | Heiner Kallweit <hkallweit1@gmail.com> | 2024-04-14 00:01:17 +0300 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2024-04-17 18:44:17 +0300 |
commit | e30556bf682d36a88cc5aef98d1123ca71adb245 (patch) | |
tree | acc5f8a24bfe4153dbad69f1780ccc8f9f47c535 | |
parent | 4cece764965020c22cff7665b18a012006359095 (diff) | |
download | linux-e30556bf682d36a88cc5aef98d1123ca71adb245.tar.xz |
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>
-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, |