aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/megaraid/megaraid_sas_base.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/megaraid/megaraid_sas_base.c')
-rw-r--r--drivers/scsi/megaraid/megaraid_sas_base.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/scsi/megaraid/megaraid_sas_base.c b/drivers/scsi/megaraid/megaraid_sas_base.c
index 1f0ca68409d4..fdd13ef8124f 100644
--- a/drivers/scsi/megaraid/megaraid_sas_base.c
+++ b/drivers/scsi/megaraid/megaraid_sas_base.c
@@ -4323,7 +4323,6 @@ retry_irq_register:
4323 megasas_mgmt_info.instance[megasas_mgmt_info.max_index] = NULL; 4323 megasas_mgmt_info.instance[megasas_mgmt_info.max_index] = NULL;
4324 megasas_mgmt_info.max_index--; 4324 megasas_mgmt_info.max_index--;
4325 4325
4326 pci_set_drvdata(pdev, NULL);
4327 instance->instancet->disable_intr(instance); 4326 instance->instancet->disable_intr(instance);
4328 if (instance->msix_vectors) 4327 if (instance->msix_vectors)
4329 for (i = 0 ; i < instance->msix_vectors; i++) 4328 for (i = 0 ; i < instance->msix_vectors; i++)
@@ -4679,8 +4678,6 @@ static void megasas_detach_one(struct pci_dev *pdev)
4679 } 4678 }
4680 } 4679 }
4681 4680
4682 pci_set_drvdata(instance->pdev, NULL);
4683
4684 instance->instancet->disable_intr(instance); 4681 instance->instancet->disable_intr(instance);
4685 4682
4686 if (instance->msix_vectors) 4683 if (instance->msix_vectors)
@@ -4722,8 +4719,6 @@ static void megasas_detach_one(struct pci_dev *pdev)
4722 instance->evt_detail, instance->evt_detail_h); 4719 instance->evt_detail, instance->evt_detail_h);
4723 scsi_host_put(host); 4720 scsi_host_put(host);
4724 4721
4725 pci_set_drvdata(pdev, NULL);
4726
4727 pci_disable_device(pdev); 4722 pci_disable_device(pdev);
4728 4723
4729 return; 4724 return;