[SCSI] mpt2sas: Added missing mpt2sas_base_detach call from scsih_remove context
authorkashyap.desai@lsi.com <kashyap.desai@lsi.com>
Thu, 4 Aug 2011 11:17:50 +0000 (16:47 +0530)
committerJames Bottomley <JBottomley@Parallels.com>
Sat, 27 Aug 2011 14:35:21 +0000 (08:35 -0600)
mpt2sas_base_detach() call was removed from _scsih_remove() while
doing some code shuffling.  Mainly when we work on adding code for
scsih_shutdown().  I have added back mpt2sas_base_detach() which will
get callled from _scsih_remove().

Signed-off-by: Kashyap Desai <kashyap.desai@lsi.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/mpt2sas/mpt2sas_scsih.c

index 6abd2fcc43e2dba024ff28c8e7f993b2c82c3d28..6bb3986094d36c75f2070eb6a842fe18178f210e 100644 (file)
@@ -7354,6 +7354,7 @@ _scsih_remove(struct pci_dev *pdev)
        }
 
        sas_remove_host(shost);
+       mpt2sas_base_detach(ioc);
        list_del(&ioc->list);
        scsi_remove_host(shost);
        scsi_host_put(shost);