diff options
-rw-r--r-- | drivers/scsi/qlogicfas.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/qlogicfas.c b/drivers/scsi/qlogicfas.c index 94baca840efe..1e874f1fb5c6 100644 --- a/drivers/scsi/qlogicfas.c +++ b/drivers/scsi/qlogicfas.c | |||
@@ -166,6 +166,7 @@ static int qlogicfas_release(struct Scsi_Host *shost) | |||
166 | { | 166 | { |
167 | struct qlogicfas408_priv *priv = get_priv_by_host(shost); | 167 | struct qlogicfas408_priv *priv = get_priv_by_host(shost); |
168 | 168 | ||
169 | scsi_remove_host(shost); | ||
169 | if (shost->irq) { | 170 | if (shost->irq) { |
170 | qlogicfas408_disable_ints(priv); | 171 | qlogicfas408_disable_ints(priv); |
171 | free_irq(shost->irq, shost); | 172 | free_irq(shost->irq, shost); |
@@ -174,7 +175,6 @@ static int qlogicfas_release(struct Scsi_Host *shost) | |||
174 | free_dma(shost->dma_channel); | 175 | free_dma(shost->dma_channel); |
175 | if (shost->io_port && shost->n_io_port) | 176 | if (shost->io_port && shost->n_io_port) |
176 | release_region(shost->io_port, shost->n_io_port); | 177 | release_region(shost->io_port, shost->n_io_port); |
177 | scsi_remove_host(shost); | ||
178 | scsi_host_put(shost); | 178 | scsi_host_put(shost); |
179 | 179 | ||
180 | return 0; | 180 | return 0; |