diff options
Diffstat (limited to 'drivers/scsi/ips.c')
-rw-r--r-- | drivers/scsi/ips.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/scsi/ips.c b/drivers/scsi/ips.c index b17771b1c605..36b676594336 100644 --- a/drivers/scsi/ips.c +++ b/drivers/scsi/ips.c | |||
@@ -656,6 +656,8 @@ ips_release(struct Scsi_Host *sh) | |||
656 | 656 | ||
657 | METHOD_TRACE("ips_release", 1); | 657 | METHOD_TRACE("ips_release", 1); |
658 | 658 | ||
659 | scsi_remove_host(sh); | ||
660 | |||
659 | for (i = 0; i < IPS_MAX_ADAPTERS && ips_sh[i] != sh; i++) ; | 661 | for (i = 0; i < IPS_MAX_ADAPTERS && ips_sh[i] != sh; i++) ; |
660 | 662 | ||
661 | if (i == IPS_MAX_ADAPTERS) { | 663 | if (i == IPS_MAX_ADAPTERS) { |
@@ -707,7 +709,6 @@ ips_release(struct Scsi_Host *sh) | |||
707 | /* free IRQ */ | 709 | /* free IRQ */ |
708 | free_irq(ha->irq, ha); | 710 | free_irq(ha->irq, ha); |
709 | 711 | ||
710 | scsi_remove_host(sh); | ||
711 | scsi_host_put(sh); | 712 | scsi_host_put(sh); |
712 | 713 | ||
713 | ips_released_controllers++; | 714 | ips_released_controllers++; |