diff options
| -rw-r--r-- | drivers/scsi/esp.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/scsi/esp.c b/drivers/scsi/esp.c index 8e8fc43c1d22..ddb512463b45 100644 --- a/drivers/scsi/esp.c +++ b/drivers/scsi/esp.c | |||
| @@ -1120,9 +1120,6 @@ static int __devexit esp_remove_common(struct esp *esp) | |||
| 1120 | 1120 | ||
| 1121 | scsi_remove_host(esp->ehost); | 1121 | scsi_remove_host(esp->ehost); |
| 1122 | 1122 | ||
| 1123 | scsi_host_put(esp->ehost); | ||
| 1124 | esp->ehost = NULL; | ||
| 1125 | |||
| 1126 | ESP_INTSOFF(esp->dregs); | 1123 | ESP_INTSOFF(esp->dregs); |
| 1127 | #if 0 | 1124 | #if 0 |
| 1128 | esp_reset_dma(esp); | 1125 | esp_reset_dma(esp); |
| @@ -1135,7 +1132,7 @@ static int __devexit esp_remove_common(struct esp *esp) | |||
| 1135 | sbus_iounmap(esp->eregs, ESP_REG_SIZE); | 1132 | sbus_iounmap(esp->eregs, ESP_REG_SIZE); |
| 1136 | esp->dma->allocated = 0; | 1133 | esp->dma->allocated = 0; |
| 1137 | 1134 | ||
| 1138 | kfree(esp); | 1135 | scsi_host_put(esp->ehost); |
| 1139 | 1136 | ||
| 1140 | return 0; | 1137 | return 0; |
| 1141 | } | 1138 | } |
