diff options
author | Bjorn Helgaas <bhelgaas@google.com> | 2012-09-12 15:54:10 -0400 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2012-09-12 15:54:10 -0400 |
commit | 1959ec5f82acbdf91425b41600f119ebecb5f6a8 (patch) | |
tree | b54bc758f10632e991a3a80a94b05f3940b6651c /drivers/infiniband | |
parent | a63ab613ff48c593f4e9ace2d111978e35a202e4 (diff) | |
parent | 1d3520357df99baf4ad89f86268ac96cd38092d9 (diff) |
Merge branch 'pci/stephen-const' into next
* pci/stephen-const:
make drivers with pci error handlers const
scsi: make pci error handlers const
netdev: make pci_error_handlers const
PCI: Make pci_error_handlers const
Diffstat (limited to 'drivers/infiniband')
-rw-r--r-- | drivers/infiniband/hw/qib/qib.h | 2 | ||||
-rw-r--r-- | drivers/infiniband/hw/qib/qib_pcie.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/infiniband/hw/qib/qib.h b/drivers/infiniband/hw/qib/qib.h index 7b1b86690024..4d11575c2010 100644 --- a/drivers/infiniband/hw/qib/qib.h +++ b/drivers/infiniband/hw/qib/qib.h | |||
@@ -87,7 +87,7 @@ struct qlogic_ib_stats { | |||
87 | }; | 87 | }; |
88 | 88 | ||
89 | extern struct qlogic_ib_stats qib_stats; | 89 | extern struct qlogic_ib_stats qib_stats; |
90 | extern struct pci_error_handlers qib_pci_err_handler; | 90 | extern const struct pci_error_handlers qib_pci_err_handler; |
91 | extern struct pci_driver qib_driver; | 91 | extern struct pci_driver qib_driver; |
92 | 92 | ||
93 | #define QIB_CHIP_SWVERSION QIB_CHIP_VERS_MAJ | 93 | #define QIB_CHIP_SWVERSION QIB_CHIP_VERS_MAJ |
diff --git a/drivers/infiniband/hw/qib/qib_pcie.c b/drivers/infiniband/hw/qib/qib_pcie.c index 900137173210..c574ec7c85e6 100644 --- a/drivers/infiniband/hw/qib/qib_pcie.c +++ b/drivers/infiniband/hw/qib/qib_pcie.c | |||
@@ -745,7 +745,7 @@ qib_pci_resume(struct pci_dev *pdev) | |||
745 | qib_init(dd, 1); /* same as re-init after reset */ | 745 | qib_init(dd, 1); /* same as re-init after reset */ |
746 | } | 746 | } |
747 | 747 | ||
748 | struct pci_error_handlers qib_pci_err_handler = { | 748 | const struct pci_error_handlers qib_pci_err_handler = { |
749 | .error_detected = qib_pci_error_detected, | 749 | .error_detected = qib_pci_error_detected, |
750 | .mmio_enabled = qib_pci_mmio_enabled, | 750 | .mmio_enabled = qib_pci_mmio_enabled, |
751 | .link_reset = qib_pci_link_reset, | 751 | .link_reset = qib_pci_link_reset, |