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 2cf9470dd11b..0a743a5d1647 100644
--- a/drivers/scsi/megaraid/megaraid_sas_base.c
+++ b/drivers/scsi/megaraid/megaraid_sas_base.c
@@ -4451,7 +4451,6 @@ retry_irq_register:
4451 megasas_mgmt_info.instance[megasas_mgmt_info.max_index] = NULL; 4451 megasas_mgmt_info.instance[megasas_mgmt_info.max_index] = NULL;
4452 megasas_mgmt_info.max_index--; 4452 megasas_mgmt_info.max_index--;
4453 4453
4454 pci_set_drvdata(pdev, NULL);
4455 instance->instancet->disable_intr(instance); 4454 instance->instancet->disable_intr(instance);
4456 if (instance->msix_vectors) 4455 if (instance->msix_vectors)
4457 for (i = 0 ; i < instance->msix_vectors; i++) 4456 for (i = 0 ; i < instance->msix_vectors; i++)
@@ -4807,8 +4806,6 @@ static void megasas_detach_one(struct pci_dev *pdev)
4807 } 4806 }
4808 } 4807 }
4809 4808
4810 pci_set_drvdata(instance->pdev, NULL);
4811
4812 instance->instancet->disable_intr(instance); 4809 instance->instancet->disable_intr(instance);
4813 4810
4814 if (instance->msix_vectors) 4811 if (instance->msix_vectors)
@@ -4850,8 +4847,6 @@ static void megasas_detach_one(struct pci_dev *pdev)
4850 instance->evt_detail, instance->evt_detail_h); 4847 instance->evt_detail, instance->evt_detail_h);
4851 scsi_host_put(host); 4848 scsi_host_put(host);
4852 4849
4853 pci_set_drvdata(pdev, NULL);
4854
4855 pci_disable_device(pdev); 4850 pci_disable_device(pdev);
4856 4851
4857 return; 4852 return;