summaryrefslogtreecommitdiff
path: root/include/linux/pcieport_if.h
diff options
context:
space:
mode:
authorStephen Hemminger <shemminger@vyatta.com>2012-09-07 20:33:14 +0400
committerBjorn Helgaas <bhelgaas@google.com>2012-09-08 02:24:59 +0400
commit494530284f16298050ab99f54b7b12dd7d1418a1 (patch)
treec9f89874141cb81f17e06113add2b1019c3df17d /include/linux/pcieport_if.h
parent0d7614f09c1ebdbaa1599a5aba7593f147bf96ee (diff)
downloadlinux-494530284f16298050ab99f54b7b12dd7d1418a1.tar.xz
PCI: Make pci_error_handlers const
Since pci_error_handlers is just a function table make it const. Signed-off-by: Stephen Hemminger <shemminger@vyatta.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Acked-by: Linas Vepstas <linasvepstas@gmail.com>
Diffstat (limited to 'include/linux/pcieport_if.h')
-rw-r--r--include/linux/pcieport_if.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/pcieport_if.h b/include/linux/pcieport_if.h
index 6775532b92a9..e6f91b1406d8 100644
--- a/include/linux/pcieport_if.h
+++ b/include/linux/pcieport_if.h
@@ -49,7 +49,7 @@ struct pcie_port_service_driver {
int (*resume) (struct pcie_device *dev);
/* Service Error Recovery Handler */
- struct pci_error_handlers *err_handler;
+ const struct pci_error_handlers *err_handler;
/* Link Reset Capability - AER service driver specific */
pci_ers_result_t (*reset_link) (struct pci_dev *dev);