mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 14:11:52 +00:00
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>
This commit is contained in:
parent
4cece76496
commit
e30556bf68
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user