aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi')
-rw-r--r--drivers/scsi/ncr53c8xx.c11
-rw-r--r--drivers/scsi/ncr53c8xx.h2
2 files changed, 5 insertions, 8 deletions
diff --git a/drivers/scsi/ncr53c8xx.c b/drivers/scsi/ncr53c8xx.c
index 030ba49f33ff..91fa66c3ec98 100644
--- a/drivers/scsi/ncr53c8xx.c
+++ b/drivers/scsi/ncr53c8xx.c
@@ -8528,18 +8528,15 @@ struct Scsi_Host * __init ncr_attach(struct scsi_host_template *tpnt,
8528} 8528}
8529 8529
8530 8530
8531int ncr53c8xx_release(struct Scsi_Host *host) 8531void ncr53c8xx_release(struct Scsi_Host *host)
8532{ 8532{
8533 struct host_data *host_data; 8533 struct host_data *host_data = shost_priv(host);
8534#ifdef DEBUG_NCR53C8XX 8534#ifdef DEBUG_NCR53C8XX
8535 printk("ncr53c8xx: release\n"); 8535 printk("ncr53c8xx: release\n");
8536#endif 8536#endif
8537 if (!host) 8537 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); 8538 ncr_detach(host_data->ncb);
8542 return 1; 8539 scsi_host_put(host);
8543} 8540}
8544 8541
8545static void ncr53c8xx_set_period(struct scsi_target *starget, int period) 8542static void ncr53c8xx_set_period(struct scsi_target *starget, int period)
diff --git a/drivers/scsi/ncr53c8xx.h b/drivers/scsi/ncr53c8xx.h
index b39357d9af8d..0e008dacf679 100644
--- a/drivers/scsi/ncr53c8xx.h
+++ b/drivers/scsi/ncr53c8xx.h
@@ -1321,7 +1321,7 @@ struct ncr_device {
1321}; 1321};
1322 1322
1323extern struct Scsi_Host *ncr_attach(struct scsi_host_template *tpnt, int unit, struct ncr_device *device); 1323extern struct Scsi_Host *ncr_attach(struct scsi_host_template *tpnt, int unit, struct ncr_device *device);
1324extern int ncr53c8xx_release(struct Scsi_Host *host); 1324extern void ncr53c8xx_release(struct Scsi_Host *host);
1325irqreturn_t ncr53c8xx_intr(int irq, void *dev_id); 1325irqreturn_t ncr53c8xx_intr(int irq, void *dev_id);
1326extern int ncr53c8xx_init(void); 1326extern int ncr53c8xx_init(void);
1327extern void ncr53c8xx_exit(void); 1327extern void ncr53c8xx_exit(void);