diff options
author | Stephen Hemminger <shemminger@vyatta.com> | 2012-09-07 12:33:16 -0400 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2012-09-07 18:35:00 -0400 |
commit | a55b2d21e81ad318b7c67a2c8530b272f631e35b (patch) | |
tree | 3e0a90bddb421317a1337faaeea5fe262da75d5e /drivers/scsi | |
parent | 3646f0e5c97703cecfd96cdabb085e78d9b7f680 (diff) |
scsi: make pci error handlers const
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'drivers/scsi')
-rw-r--r-- | drivers/scsi/ipr.c | 2 | ||||
-rw-r--r-- | drivers/scsi/lpfc/lpfc_init.c | 2 | ||||
-rw-r--r-- | drivers/scsi/mpt2sas/mpt2sas_scsih.c | 2 | ||||
-rw-r--r-- | drivers/scsi/qla2xxx/qla_os.c | 2 | ||||
-rw-r--r-- | drivers/scsi/qla4xxx/ql4_os.c | 2 | ||||
-rw-r--r-- | drivers/scsi/sym53c8xx_2/sym_glue.c | 2 |
6 files changed, 6 insertions, 6 deletions
diff --git a/drivers/scsi/ipr.c b/drivers/scsi/ipr.c index 467dc38246f9..b91fa7aed37c 100644 --- a/drivers/scsi/ipr.c +++ b/drivers/scsi/ipr.c | |||
@@ -9228,7 +9228,7 @@ static struct pci_device_id ipr_pci_table[] __devinitdata = { | |||
9228 | }; | 9228 | }; |
9229 | MODULE_DEVICE_TABLE(pci, ipr_pci_table); | 9229 | MODULE_DEVICE_TABLE(pci, ipr_pci_table); |
9230 | 9230 | ||
9231 | static struct pci_error_handlers ipr_err_handler = { | 9231 | static const struct pci_error_handlers ipr_err_handler = { |
9232 | .error_detected = ipr_pci_error_detected, | 9232 | .error_detected = ipr_pci_error_detected, |
9233 | .slot_reset = ipr_pci_slot_reset, | 9233 | .slot_reset = ipr_pci_slot_reset, |
9234 | }; | 9234 | }; |
diff --git a/drivers/scsi/lpfc/lpfc_init.c b/drivers/scsi/lpfc/lpfc_init.c index 45c15208be9f..a979e2765cf6 100644 --- a/drivers/scsi/lpfc/lpfc_init.c +++ b/drivers/scsi/lpfc/lpfc_init.c | |||
@@ -10425,7 +10425,7 @@ static struct pci_device_id lpfc_id_table[] = { | |||
10425 | 10425 | ||
10426 | MODULE_DEVICE_TABLE(pci, lpfc_id_table); | 10426 | MODULE_DEVICE_TABLE(pci, lpfc_id_table); |
10427 | 10427 | ||
10428 | static struct pci_error_handlers lpfc_err_handler = { | 10428 | static const struct pci_error_handlers lpfc_err_handler = { |
10429 | .error_detected = lpfc_io_error_detected, | 10429 | .error_detected = lpfc_io_error_detected, |
10430 | .slot_reset = lpfc_io_slot_reset, | 10430 | .slot_reset = lpfc_io_slot_reset, |
10431 | .resume = lpfc_io_resume, | 10431 | .resume = lpfc_io_resume, |
diff --git a/drivers/scsi/mpt2sas/mpt2sas_scsih.c b/drivers/scsi/mpt2sas/mpt2sas_scsih.c index b1ebd6f8dab3..1ccae45c5270 100644 --- a/drivers/scsi/mpt2sas/mpt2sas_scsih.c +++ b/drivers/scsi/mpt2sas/mpt2sas_scsih.c | |||
@@ -8306,7 +8306,7 @@ _scsih_pci_mmio_enabled(struct pci_dev *pdev) | |||
8306 | return PCI_ERS_RESULT_NEED_RESET; | 8306 | return PCI_ERS_RESULT_NEED_RESET; |
8307 | } | 8307 | } |
8308 | 8308 | ||
8309 | static struct pci_error_handlers _scsih_err_handler = { | 8309 | static const struct pci_error_handlers _scsih_err_handler = { |
8310 | .error_detected = _scsih_pci_error_detected, | 8310 | .error_detected = _scsih_pci_error_detected, |
8311 | .mmio_enabled = _scsih_pci_mmio_enabled, | 8311 | .mmio_enabled = _scsih_pci_mmio_enabled, |
8312 | .slot_reset = _scsih_pci_slot_reset, | 8312 | .slot_reset = _scsih_pci_slot_reset, |
diff --git a/drivers/scsi/qla2xxx/qla_os.c b/drivers/scsi/qla2xxx/qla_os.c index fb8cd3847d4b..d3052622e77a 100644 --- a/drivers/scsi/qla2xxx/qla_os.c +++ b/drivers/scsi/qla2xxx/qla_os.c | |||
@@ -4471,7 +4471,7 @@ qla2xxx_pci_resume(struct pci_dev *pdev) | |||
4471 | ha->flags.eeh_busy = 0; | 4471 | ha->flags.eeh_busy = 0; |
4472 | } | 4472 | } |
4473 | 4473 | ||
4474 | static struct pci_error_handlers qla2xxx_err_handler = { | 4474 | static const struct pci_error_handlers qla2xxx_err_handler = { |
4475 | .error_detected = qla2xxx_pci_error_detected, | 4475 | .error_detected = qla2xxx_pci_error_detected, |
4476 | .mmio_enabled = qla2xxx_pci_mmio_enabled, | 4476 | .mmio_enabled = qla2xxx_pci_mmio_enabled, |
4477 | .slot_reset = qla2xxx_pci_slot_reset, | 4477 | .slot_reset = qla2xxx_pci_slot_reset, |
diff --git a/drivers/scsi/qla4xxx/ql4_os.c b/drivers/scsi/qla4xxx/ql4_os.c index 9da426628b97..c75ca26298d6 100644 --- a/drivers/scsi/qla4xxx/ql4_os.c +++ b/drivers/scsi/qla4xxx/ql4_os.c | |||
@@ -6148,7 +6148,7 @@ qla4xxx_pci_resume(struct pci_dev *pdev) | |||
6148 | clear_bit(AF_EEH_BUSY, &ha->flags); | 6148 | clear_bit(AF_EEH_BUSY, &ha->flags); |
6149 | } | 6149 | } |
6150 | 6150 | ||
6151 | static struct pci_error_handlers qla4xxx_err_handler = { | 6151 | static const struct pci_error_handlers qla4xxx_err_handler = { |
6152 | .error_detected = qla4xxx_pci_error_detected, | 6152 | .error_detected = qla4xxx_pci_error_detected, |
6153 | .mmio_enabled = qla4xxx_pci_mmio_enabled, | 6153 | .mmio_enabled = qla4xxx_pci_mmio_enabled, |
6154 | .slot_reset = qla4xxx_pci_slot_reset, | 6154 | .slot_reset = qla4xxx_pci_slot_reset, |
diff --git a/drivers/scsi/sym53c8xx_2/sym_glue.c b/drivers/scsi/sym53c8xx_2/sym_glue.c index 36d1ed7817eb..e2b8e68b57e7 100644 --- a/drivers/scsi/sym53c8xx_2/sym_glue.c +++ b/drivers/scsi/sym53c8xx_2/sym_glue.c | |||
@@ -2117,7 +2117,7 @@ static struct pci_device_id sym2_id_table[] __devinitdata = { | |||
2117 | 2117 | ||
2118 | MODULE_DEVICE_TABLE(pci, sym2_id_table); | 2118 | MODULE_DEVICE_TABLE(pci, sym2_id_table); |
2119 | 2119 | ||
2120 | static struct pci_error_handlers sym2_err_handler = { | 2120 | static const struct pci_error_handlers sym2_err_handler = { |
2121 | .error_detected = sym2_io_error_detected, | 2121 | .error_detected = sym2_io_error_detected, |
2122 | .mmio_enabled = sym2_io_slot_dump, | 2122 | .mmio_enabled = sym2_io_slot_dump, |
2123 | .slot_reset = sym2_io_slot_reset, | 2123 | .slot_reset = sym2_io_slot_reset, |