diff options
author | Christoph Hellwig <hch@lst.de> | 2014-09-14 14:08:21 -0400 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2014-11-12 05:19:36 -0500 |
commit | 1d5203284d8acbdfdf9b478d434450b34f338f28 (patch) | |
tree | d92c80714458eb41581d4ff45c7ffb4e93375e7e /include/scsi | |
parent | 1f12ffa51479741db7c4ac1b7abc21662e4ce119 (diff) |
scsi: handle more device handler setup/teardown in common code
Move all code to set up and tear down sdev->scsi_dh_data to common code.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Mike Christie <michaelc@cs.wisc.edu>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Diffstat (limited to 'include/scsi')
-rw-r--r-- | include/scsi/scsi_device.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/scsi/scsi_device.h b/include/scsi/scsi_device.h index 2601c97fd8b9..50d47e6e89d1 100644 --- a/include/scsi/scsi_device.h +++ b/include/scsi/scsi_device.h | |||
@@ -210,7 +210,7 @@ struct scsi_device_handler { | |||
210 | struct module *module; | 210 | struct module *module; |
211 | const char *name; | 211 | const char *name; |
212 | int (*check_sense)(struct scsi_device *, struct scsi_sense_hdr *); | 212 | int (*check_sense)(struct scsi_device *, struct scsi_sense_hdr *); |
213 | int (*attach)(struct scsi_device *); | 213 | struct scsi_dh_data *(*attach)(struct scsi_device *); |
214 | void (*detach)(struct scsi_device *); | 214 | void (*detach)(struct scsi_device *); |
215 | int (*activate)(struct scsi_device *, activate_complete, void *); | 215 | int (*activate)(struct scsi_device *, activate_complete, void *); |
216 | int (*prep_fn)(struct scsi_device *, struct request *); | 216 | int (*prep_fn)(struct scsi_device *, struct request *); |