summaryrefslogtreecommitdiff
path: root/include/linux/pcieport_if.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2017-06-19 20:04:58 +0200
committerBjorn Helgaas <bhelgaas@google.com>2017-07-31 14:29:17 -0500
commitc5dc3c69f17a7e77359f10c342d1816390bc8846 (patch)
tree425908fdbff68fcca6b898120e0129c8a05e27b3 /include/linux/pcieport_if.h
parent16f73eb02d7e1765ccab3d2018e0bd98eb93d973 (diff)
PCI/portdrv: Move error handler methods to struct pcie_port_service_driver
Move the error handler methods to struct pcie_port_service_driver and avoid the detour through the mostly unused pci_error_handlers structure. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'include/linux/pcieport_if.h')
-rw-r--r--include/linux/pcieport_if.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/pcieport_if.h b/include/linux/pcieport_if.h
index afcd130ab3a9..18edc651c070 100644
--- a/include/linux/pcieport_if.h
+++ b/include/linux/pcieport_if.h
@@ -50,8 +50,8 @@ struct pcie_port_service_driver {
int (*suspend) (struct pcie_device *dev);
int (*resume) (struct pcie_device *dev);
- /* Service Error Recovery Handler */
- const struct pci_error_handlers *err_handler;
+ /* Device driver may resume normal operations */
+ void (*error_resume)(struct pci_dev *dev);
/* Link Reset Capability - AER service driver specific */
pci_ers_result_t (*reset_link) (struct pci_dev *dev);