summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorSinan Kaya <okaya@codeaurora.org>2018-07-20 01:04:15 +0200
committerBjorn Helgaas <bhelgaas@google.com>2018-07-20 01:04:23 +0200
commitc6a44ba950d147e15fe6dab6455a52f91d8fe625 (patch)
tree58f56c334d78a8476d431ac73085931e422fd8f1 /include
parentPCI: Deprecate pci_reset_bus() and pci_reset_slot() functions (diff)
downloadlinux-c6a44ba950d147e15fe6dab6455a52f91d8fe625.tar.xz
linux-c6a44ba950d147e15fe6dab6455a52f91d8fe625.zip
PCI: Rename pci_try_reset_bus() to pci_reset_bus()
Now that the old implementation of pci_reset_bus() is gone, replace pci_try_reset_bus() with pci_reset_bus(). Compared to the old implementation, new code will fail immmediately with -EAGAIN if object lock cannot be obtained. Signed-off-by: Sinan Kaya <okaya@codeaurora.org> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/pci.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/pci.h b/include/linux/pci.h
index cf53ecb50789..307b336496f6 100644
--- a/include/linux/pci.h
+++ b/include/linux/pci.h
@@ -1097,7 +1097,7 @@ int pci_reset_function_locked(struct pci_dev *dev);
int pci_try_reset_function(struct pci_dev *dev);
int pci_probe_reset_slot(struct pci_slot *slot);
int pci_probe_reset_bus(struct pci_bus *bus);
-int pci_try_reset_bus(struct pci_dev *dev);
+int pci_reset_bus(struct pci_dev *dev);
void pci_reset_secondary_bus(struct pci_dev *dev);
void pcibios_reset_secondary_bus(struct pci_dev *dev);
void pci_update_resource(struct pci_dev *dev, int resno);