Skip to content

Commit 2b4af4b

Browse files
committed
PCI: Fix pci_bus_resetable(), pci_slot_resetable() name typos
Fix typos in the pci_bus_resetable() and pci_slot_resetable() function names. No functional change intended. Link: https://lore.kernel.org/r/20230824193712.542167-10-helgaas@kernel.org Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
1 parent 1ec0952 commit 2b4af4b

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

drivers/pci/pci.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5627,7 +5627,7 @@ int pci_try_reset_function(struct pci_dev *dev)
56275627
EXPORT_SYMBOL_GPL(pci_try_reset_function);
56285628

56295629
/* Do any devices on or below this bus prevent a bus reset? */
5630-
static bool pci_bus_resetable(struct pci_bus *bus)
5630+
static bool pci_bus_resettable(struct pci_bus *bus)
56315631
{
56325632
struct pci_dev *dev;
56335633

@@ -5637,7 +5637,7 @@ static bool pci_bus_resetable(struct pci_bus *bus)
56375637

56385638
list_for_each_entry(dev, &bus->devices, bus_list) {
56395639
if (dev->dev_flags & PCI_DEV_FLAGS_NO_BUS_RESET ||
5640-
(dev->subordinate && !pci_bus_resetable(dev->subordinate)))
5640+
(dev->subordinate && !pci_bus_resettable(dev->subordinate)))
56415641
return false;
56425642
}
56435643

@@ -5695,7 +5695,7 @@ static int pci_bus_trylock(struct pci_bus *bus)
56955695
}
56965696

56975697
/* Do any devices on or below this slot prevent a bus reset? */
5698-
static bool pci_slot_resetable(struct pci_slot *slot)
5698+
static bool pci_slot_resettable(struct pci_slot *slot)
56995699
{
57005700
struct pci_dev *dev;
57015701

@@ -5707,7 +5707,7 @@ static bool pci_slot_resetable(struct pci_slot *slot)
57075707
if (!dev->slot || dev->slot != slot)
57085708
continue;
57095709
if (dev->dev_flags & PCI_DEV_FLAGS_NO_BUS_RESET ||
5710-
(dev->subordinate && !pci_bus_resetable(dev->subordinate)))
5710+
(dev->subordinate && !pci_bus_resettable(dev->subordinate)))
57115711
return false;
57125712
}
57135713

@@ -5843,7 +5843,7 @@ static int pci_slot_reset(struct pci_slot *slot, bool probe)
58435843
{
58445844
int rc;
58455845

5846-
if (!slot || !pci_slot_resetable(slot))
5846+
if (!slot || !pci_slot_resettable(slot))
58475847
return -ENOTTY;
58485848

58495849
if (!probe)
@@ -5910,7 +5910,7 @@ static int pci_bus_reset(struct pci_bus *bus, bool probe)
59105910
{
59115911
int ret;
59125912

5913-
if (!bus->self || !pci_bus_resetable(bus))
5913+
if (!bus->self || !pci_bus_resettable(bus))
59145914
return -ENOTTY;
59155915

59165916
if (probe)

0 commit comments

Comments
 (0)