diff options
Diffstat (limited to 'drivers/scsi/ncr53c8xx.c')
-rw-r--r-- | drivers/scsi/ncr53c8xx.c | 18 |
1 files changed, 5 insertions, 13 deletions
diff --git a/drivers/scsi/ncr53c8xx.c b/drivers/scsi/ncr53c8xx.c index 030ba49f33ff..016c462bc771 100644 --- a/drivers/scsi/ncr53c8xx.c +++ b/drivers/scsi/ncr53c8xx.c | |||
@@ -8143,12 +8143,7 @@ static int ncr53c8xx_abort(struct scsi_cmnd *cmd) | |||
8143 | unsigned long flags; | 8143 | unsigned long flags; |
8144 | struct scsi_cmnd *done_list; | 8144 | struct scsi_cmnd *done_list; |
8145 | 8145 | ||
8146 | #if defined SCSI_RESET_SYNCHRONOUS && defined SCSI_RESET_ASYNCHRONOUS | 8146 | printk("ncr53c8xx_abort: command pid %lu\n", cmd->serial_number); |
8147 | printk("ncr53c8xx_abort: pid=%lu serial_number=%ld\n", | ||
8148 | cmd->pid, cmd->serial_number); | ||
8149 | #else | ||
8150 | printk("ncr53c8xx_abort: command pid %lu\n", cmd->pid); | ||
8151 | #endif | ||
8152 | 8147 | ||
8153 | NCR_LOCK_NCB(np, flags); | 8148 | NCR_LOCK_NCB(np, flags); |
8154 | 8149 | ||
@@ -8528,18 +8523,15 @@ struct Scsi_Host * __init ncr_attach(struct scsi_host_template *tpnt, | |||
8528 | } | 8523 | } |
8529 | 8524 | ||
8530 | 8525 | ||
8531 | int ncr53c8xx_release(struct Scsi_Host *host) | 8526 | void ncr53c8xx_release(struct Scsi_Host *host) |
8532 | { | 8527 | { |
8533 | struct host_data *host_data; | 8528 | struct host_data *host_data = shost_priv(host); |
8534 | #ifdef DEBUG_NCR53C8XX | 8529 | #ifdef DEBUG_NCR53C8XX |
8535 | printk("ncr53c8xx: release\n"); | 8530 | printk("ncr53c8xx: release\n"); |
8536 | #endif | 8531 | #endif |
8537 | if (!host) | 8532 | if (host_data->ncb) |
8538 | return 1; | ||
8539 | host_data = (struct host_data *)host->hostdata; | ||
8540 | if (host_data && host_data->ncb) | ||
8541 | ncr_detach(host_data->ncb); | 8533 | ncr_detach(host_data->ncb); |
8542 | return 1; | 8534 | scsi_host_put(host); |
8543 | } | 8535 | } |
8544 | 8536 | ||
8545 | static void ncr53c8xx_set_period(struct scsi_target *starget, int period) | 8537 | static void ncr53c8xx_set_period(struct scsi_target *starget, int period) |