aboutsummaryrefslogtreecommitdiff
path: root/drivers/scsi
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi')
-rw-r--r--drivers/scsi/esp.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/scsi/esp.c b/drivers/scsi/esp.c
index 8e8fc43c1d2..ddb512463b4 100644
--- a/drivers/scsi/esp.c
+++ b/drivers/scsi/esp.c
@@ -1120,9 +1120,6 @@ static int __devexit esp_remove_common(struct esp *esp)
scsi_remove_host(esp->ehost);
- scsi_host_put(esp->ehost);
- esp->ehost = NULL;
-
ESP_INTSOFF(esp->dregs);
#if 0
esp_reset_dma(esp);
@@ -1135,7 +1132,7 @@ static int __devexit esp_remove_common(struct esp *esp)
sbus_iounmap(esp->eregs, ESP_REG_SIZE);
esp->dma->allocated = 0;
- kfree(esp);
+ scsi_host_put(esp->ehost);
return 0;
}