aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/qla2xxx/qla_os.c
diff options
context:
space:
mode:
authorGiridhar Malavali <giridhar.malavali@qlogic.com>2010-05-28 18:08:15 -0400
committerJames Bottomley <James.Bottomley@suse.de>2010-07-27 13:01:19 -0400
commitb963752f47c54a29c11acee99e6c99b3c6bb35c5 (patch)
treef374f820a12ccdd7766722a1de67ada0d34b68e8 /drivers/scsi/qla2xxx/qla_os.c
parent9257aa4963873dcc3b339e2e3c0aba081c83695f (diff)
[SCSI] qla2xxx: Clear drive active CRB register when not in use.
The CRB drive active register is cleared when driver is unloaded or when driver enters failed state. Signed-off-by: Giridhar Malavali <giridhar.malavali@qlogic.com> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_os.c')
-rw-r--r--drivers/scsi/qla2xxx/qla_os.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/scsi/qla2xxx/qla_os.c b/drivers/scsi/qla2xxx/qla_os.c
index be1a8fcbb1fb..c345ba716728 100644
--- a/drivers/scsi/qla2xxx/qla_os.c
+++ b/drivers/scsi/qla2xxx/qla_os.c
@@ -2402,6 +2402,10 @@ qla2x00_remove_one(struct pci_dev *pdev)
2402 scsi_host_put(base_vha->host); 2402 scsi_host_put(base_vha->host);
2403 2403
2404 if (IS_QLA82XX(ha)) { 2404 if (IS_QLA82XX(ha)) {
2405 qla82xx_idc_lock(ha);
2406 qla82xx_clear_drv_active(ha);
2407 qla82xx_idc_unlock(ha);
2408
2405 iounmap((device_reg_t __iomem *)ha->nx_pcibase); 2409 iounmap((device_reg_t __iomem *)ha->nx_pcibase);
2406 if (!ql2xdbwr) 2410 if (!ql2xdbwr)
2407 iounmap((device_reg_t __iomem *)ha->nxdb_wr_ptr); 2411 iounmap((device_reg_t __iomem *)ha->nxdb_wr_ptr);