aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/megaraid/megaraid_mbox.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/megaraid/megaraid_mbox.c')
-rw-r--r--drivers/scsi/megaraid/megaraid_mbox.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/scsi/megaraid/megaraid_mbox.c b/drivers/scsi/megaraid/megaraid_mbox.c
index 515c9629e9fe..d1a4b82836ea 100644
--- a/drivers/scsi/megaraid/megaraid_mbox.c
+++ b/drivers/scsi/megaraid/megaraid_mbox.c
@@ -534,7 +534,6 @@ megaraid_probe_one(struct pci_dev *pdev, const struct pci_device_id *id)
534 return 0; 534 return 0;
535 535
536out_cmm_unreg: 536out_cmm_unreg:
537 pci_set_drvdata(pdev, NULL);
538 megaraid_cmm_unregister(adapter); 537 megaraid_cmm_unregister(adapter);
539out_fini_mbox: 538out_fini_mbox:
540 megaraid_fini_mbox(adapter); 539 megaraid_fini_mbox(adapter);
@@ -594,11 +593,6 @@ megaraid_detach_one(struct pci_dev *pdev)
594 // detach from the IO sub-system 593 // detach from the IO sub-system
595 megaraid_io_detach(adapter); 594 megaraid_io_detach(adapter);
596 595
597 // reset the device state in the PCI structure. We check this
598 // condition when we enter here. If the device state is NULL,
599 // that would mean the device has already been removed
600 pci_set_drvdata(pdev, NULL);
601
602 // Unregister from common management module 596 // Unregister from common management module
603 // 597 //
604 // FIXME: this must return success or failure for conditions if there 598 // FIXME: this must return success or failure for conditions if there