aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/ipr.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/ipr.c')
-rw-r--r--drivers/scsi/ipr.c32
1 files changed, 15 insertions, 17 deletions
diff --git a/drivers/scsi/ipr.c b/drivers/scsi/ipr.c
index fe6029f4df16..1d7da3f41ebb 100644
--- a/drivers/scsi/ipr.c
+++ b/drivers/scsi/ipr.c
@@ -8296,7 +8296,7 @@ static pci_ers_result_t ipr_pci_error_detected(struct pci_dev *pdev,
8296 * Return value: 8296 * Return value:
8297 * 0 on success / -EIO on failure 8297 * 0 on success / -EIO on failure
8298 **/ 8298 **/
8299static int __devinit ipr_probe_ioa_part2(struct ipr_ioa_cfg *ioa_cfg) 8299static int ipr_probe_ioa_part2(struct ipr_ioa_cfg *ioa_cfg)
8300{ 8300{
8301 int rc = 0; 8301 int rc = 0;
8302 unsigned long host_lock_flags = 0; 8302 unsigned long host_lock_flags = 0;
@@ -8425,7 +8425,7 @@ static void ipr_free_all_resources(struct ipr_ioa_cfg *ioa_cfg)
8425 * Return value: 8425 * Return value:
8426 * 0 on success / -ENOMEM on allocation failure 8426 * 0 on success / -ENOMEM on allocation failure
8427 **/ 8427 **/
8428static int __devinit ipr_alloc_cmd_blks(struct ipr_ioa_cfg *ioa_cfg) 8428static int ipr_alloc_cmd_blks(struct ipr_ioa_cfg *ioa_cfg)
8429{ 8429{
8430 struct ipr_cmnd *ipr_cmd; 8430 struct ipr_cmnd *ipr_cmd;
8431 struct ipr_ioarcb *ioarcb; 8431 struct ipr_ioarcb *ioarcb;
@@ -8497,7 +8497,7 @@ static int __devinit ipr_alloc_cmd_blks(struct ipr_ioa_cfg *ioa_cfg)
8497 * Return value: 8497 * Return value:
8498 * 0 on success / non-zero for error 8498 * 0 on success / non-zero for error
8499 **/ 8499 **/
8500static int __devinit ipr_alloc_mem(struct ipr_ioa_cfg *ioa_cfg) 8500static int ipr_alloc_mem(struct ipr_ioa_cfg *ioa_cfg)
8501{ 8501{
8502 struct pci_dev *pdev = ioa_cfg->pdev; 8502 struct pci_dev *pdev = ioa_cfg->pdev;
8503 int i, rc = -ENOMEM; 8503 int i, rc = -ENOMEM;
@@ -8601,7 +8601,7 @@ out_free_res_entries:
8601 * Return value: 8601 * Return value:
8602 * none 8602 * none
8603 **/ 8603 **/
8604static void __devinit ipr_initialize_bus_attr(struct ipr_ioa_cfg *ioa_cfg) 8604static void ipr_initialize_bus_attr(struct ipr_ioa_cfg *ioa_cfg)
8605{ 8605{
8606 int i; 8606 int i;
8607 8607
@@ -8625,8 +8625,8 @@ static void __devinit ipr_initialize_bus_attr(struct ipr_ioa_cfg *ioa_cfg)
8625 * Return value: 8625 * Return value:
8626 * none 8626 * none
8627 **/ 8627 **/
8628static void __devinit ipr_init_ioa_cfg(struct ipr_ioa_cfg *ioa_cfg, 8628static void ipr_init_ioa_cfg(struct ipr_ioa_cfg *ioa_cfg,
8629 struct Scsi_Host *host, struct pci_dev *pdev) 8629 struct Scsi_Host *host, struct pci_dev *pdev)
8630{ 8630{
8631 const struct ipr_interrupt_offsets *p; 8631 const struct ipr_interrupt_offsets *p;
8632 struct ipr_interrupts *t; 8632 struct ipr_interrupts *t;
@@ -8712,7 +8712,7 @@ static void __devinit ipr_init_ioa_cfg(struct ipr_ioa_cfg *ioa_cfg,
8712 * Return value: 8712 * Return value:
8713 * ptr to chip information on success / NULL on failure 8713 * ptr to chip information on success / NULL on failure
8714 **/ 8714 **/
8715static const struct ipr_chip_t * __devinit 8715static const struct ipr_chip_t *
8716ipr_get_chip_info(const struct pci_device_id *dev_id) 8716ipr_get_chip_info(const struct pci_device_id *dev_id)
8717{ 8717{
8718 int i; 8718 int i;
@@ -8734,7 +8734,7 @@ ipr_get_chip_info(const struct pci_device_id *dev_id)
8734 * Return value: 8734 * Return value:
8735 * 0 on success / non-zero on failure 8735 * 0 on success / non-zero on failure
8736 **/ 8736 **/
8737static irqreturn_t __devinit ipr_test_intr(int irq, void *devp) 8737static irqreturn_t ipr_test_intr(int irq, void *devp)
8738{ 8738{
8739 struct ipr_ioa_cfg *ioa_cfg = (struct ipr_ioa_cfg *)devp; 8739 struct ipr_ioa_cfg *ioa_cfg = (struct ipr_ioa_cfg *)devp;
8740 unsigned long lock_flags = 0; 8740 unsigned long lock_flags = 0;
@@ -8761,8 +8761,7 @@ static irqreturn_t __devinit ipr_test_intr(int irq, void *devp)
8761 * Return value: 8761 * Return value:
8762 * 0 on success / non-zero on failure 8762 * 0 on success / non-zero on failure
8763 **/ 8763 **/
8764static int __devinit ipr_test_msi(struct ipr_ioa_cfg *ioa_cfg, 8764static int ipr_test_msi(struct ipr_ioa_cfg *ioa_cfg, struct pci_dev *pdev)
8765 struct pci_dev *pdev)
8766{ 8765{
8767 int rc; 8766 int rc;
8768 volatile u32 int_reg; 8767 volatile u32 int_reg;
@@ -8815,8 +8814,8 @@ static int __devinit ipr_test_msi(struct ipr_ioa_cfg *ioa_cfg,
8815 * Return value: 8814 * Return value:
8816 * 0 on success / non-zero on failure 8815 * 0 on success / non-zero on failure
8817 **/ 8816 **/
8818static int __devinit ipr_probe_ioa(struct pci_dev *pdev, 8817static int ipr_probe_ioa(struct pci_dev *pdev,
8819 const struct pci_device_id *dev_id) 8818 const struct pci_device_id *dev_id)
8820{ 8819{
8821 struct ipr_ioa_cfg *ioa_cfg; 8820 struct ipr_ioa_cfg *ioa_cfg;
8822 struct Scsi_Host *host; 8821 struct Scsi_Host *host;
@@ -9113,7 +9112,7 @@ static void __ipr_remove(struct pci_dev *pdev)
9113 * Return value: 9112 * Return value:
9114 * none 9113 * none
9115 **/ 9114 **/
9116static void __devexit ipr_remove(struct pci_dev *pdev) 9115static void ipr_remove(struct pci_dev *pdev)
9117{ 9116{
9118 struct ipr_ioa_cfg *ioa_cfg = pci_get_drvdata(pdev); 9117 struct ipr_ioa_cfg *ioa_cfg = pci_get_drvdata(pdev);
9119 9118
@@ -9136,8 +9135,7 @@ static void __devexit ipr_remove(struct pci_dev *pdev)
9136 * Return value: 9135 * Return value:
9137 * 0 on success / non-zero on failure 9136 * 0 on success / non-zero on failure
9138 **/ 9137 **/
9139static int __devinit ipr_probe(struct pci_dev *pdev, 9138static int ipr_probe(struct pci_dev *pdev, const struct pci_device_id *dev_id)
9140 const struct pci_device_id *dev_id)
9141{ 9139{
9142 struct ipr_ioa_cfg *ioa_cfg; 9140 struct ipr_ioa_cfg *ioa_cfg;
9143 int rc; 9141 int rc;
@@ -9218,7 +9216,7 @@ static void ipr_shutdown(struct pci_dev *pdev)
9218 wait_event(ioa_cfg->reset_wait_q, !ioa_cfg->in_reset_reload); 9216 wait_event(ioa_cfg->reset_wait_q, !ioa_cfg->in_reset_reload);
9219} 9217}
9220 9218
9221static struct pci_device_id ipr_pci_table[] __devinitdata = { 9219static struct pci_device_id ipr_pci_table[] = {
9222 { PCI_VENDOR_ID_MYLEX, PCI_DEVICE_ID_IBM_GEMSTONE, 9220 { PCI_VENDOR_ID_MYLEX, PCI_DEVICE_ID_IBM_GEMSTONE,
9223 PCI_VENDOR_ID_IBM, IPR_SUBS_DEV_ID_5702, 0, 0, 0 }, 9221 PCI_VENDOR_ID_IBM, IPR_SUBS_DEV_ID_5702, 0, 0, 0 },
9224 { PCI_VENDOR_ID_MYLEX, PCI_DEVICE_ID_IBM_GEMSTONE, 9222 { PCI_VENDOR_ID_MYLEX, PCI_DEVICE_ID_IBM_GEMSTONE,
@@ -9305,7 +9303,7 @@ static struct pci_driver ipr_driver = {
9305 .name = IPR_NAME, 9303 .name = IPR_NAME,
9306 .id_table = ipr_pci_table, 9304 .id_table = ipr_pci_table,
9307 .probe = ipr_probe, 9305 .probe = ipr_probe,
9308 .remove = __devexit_p(ipr_remove), 9306 .remove = ipr_remove,
9309 .shutdown = ipr_shutdown, 9307 .shutdown = ipr_shutdown,
9310 .err_handler = &ipr_err_handler, 9308 .err_handler = &ipr_err_handler,
9311}; 9309};