diff --git a/drivers/scsi/isci/init.c b/drivers/scsi/isci/init.c index c9af456e7dfe5b6639bd9f0a35758d1a0f26d5e3..5137db5a5d85f8ea2a4a1b22350cfdc5b83f2569 100644 --- a/drivers/scsi/isci/init.c +++ b/drivers/scsi/isci/init.c @@ -60,6 +60,7 @@ #include #include #include +#include "host.h" #include "isci.h" #include "task.h" #include "probe_roms.h" @@ -552,9 +553,9 @@ static void __devexit isci_pci_remove(struct pci_dev *pdev) int i; for_each_isci_host(i, ihost, pdev) { + wait_for_start(ihost); isci_unregister(ihost); isci_host_deinit(ihost); - sci_controller_disable_interrupts(ihost); } }